User`s guide

An Address Book Reader (GUIDE)
handles.Addresses = Addresses;
guidata(hObject, handles)
return
case 'Cancel '
% Revert back to the original number
set(handles.Contact_Phone,...
'String',Addresses(handles.Index).Phone )
return
end
Page Through Address Book Prev/Next
By clicking the Prev and Next buttons you can page back and forth through
the entries in the address book. Both push buttons use the same callback,
Prev_Next_Callback. You must set the C allback property of both push
buttons to call this subfunction, as the following illustration of the Prev push
button
Callback property setting shows.
Determine Which Button Is Clicked
The callback defines an additional argument, str,thatindicateswhich
button, Prev or Next,wasclicked. ForthePrev button
Callback property,
the
Callback string includes 'Prev' as the last argument. The Next button
Callback string includes 'Next' as the last argument. The value of str
10-91