Important: The information in this document is obsolete and should not be used for new development.
GetDialogItemText
After using theGetDialogItemprocedure to get a handle to an editable text item or a static text item in a dialog box, you can use theGetDialogItemTextprocedure to get the text string contained in that item. TheGetDialogItemTextprocedure is also available as theGetITextprocedure.
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
TheGetDialogItemTextprocedure returns, in thetextparameter, 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,GetDialogItemTextreturns only the first 255.SEE ALSO
Listing 6-12 on page 6-49 illustrates how to useGetDialogItemTextto retrieve
the text that a user types into an editable text item.