GetBookMark$ Returns Value and Form Field Name |
Q123693
If you use the WordBasic GetBookMark$() function to return the value of a form field bookmark, the form field name and value are returned. For example, if you have a text box form field named "text1," the following macro returns the word "FORMTEXT" followed by the text typed into the text1 form field.
Sub Main
Name$ = GetBookmark$("text1")
MsgBox Name$
End Sub
If you type the name John in the text1 form field, the above macro displays
the following string:
FORMTEXT John
To correctly retrieve information from form fields, use the
GetFormResult$() or GetFormResult() function.
Sub Main
Name$ = GetFormResult$("text1")
Msgbox Name$
End Sub
For more information on the GetFormResult$() and GetFormResult() functions,
see the "GetFormResult$() function" topic in the Word 6.0 Help file.
"Microsoft Word Developer's Kit," for version 6.0, pages 491-494
Additional query words: 6.0 winword form forms word6 7.0 word95 word7 GetFormResult GetFormResult$
Keywords :
Issue type :
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |