Important: The information in this document is obsolete and should not be used for new development.
GetDialogItemText
After using theGetDialogItem
procedure to get a handle to an editable text item or a static text item in a dialog box, you can use theGetDialogItemText
procedure to get the text string contained in that item. TheGetDialogItemText
procedure is also available as theGetIText
procedure.
PROCEDURE GetDialogItemText (item: Handle; VAR text: Str255);
item
- A handle to an editable text item or a static text item in a dialog box.
text
- The text contained within the item.
DESCRIPTION
TheGetDialogItemText
procedure returns, in thetext
parameter, the text of the given editable text or static text item.SPECIAL CONSIDERATIONS
If the user types more than 255 characters in an editable text item,GetDialogItemText
returns only the first 255.SEE ALSO
Listing 6-12 on page 6-49 illustrates how to useGetDialogItemText
to retrieve
the text that a user types into an editable text item.