TIP: Click on subject to list as thread! ANSI
echo: ms_word
to: JAMES LAWSON
from: JOHN DURSO
date: 1996-05-20 13:04:00
subject: MACROS AND FORM FIELDS IN

JL>ÿ@SUBJECT:Macros and Form Fields in Word95                            N
JL>MSGID: 3:632/309.0 318ed6ac
JL>TID: FastEcho 1.45a 15109
JL>I am seeking help with a problem that requires some expertise with Word
Basic.
JL>I have placed several Drop-down form fields pn a page and wish to create a
JL>macro which will read the 'value' in each field and compare it with the
JL>selected value in other drop-down fields.  However, when I tried assigning 
a
JL>variable value to the selected option in a drop-down form field, the value
JL>stored was not that of the actual text in the field, but the fact that 
there
JL>was a field at that bookmark location.
JL>Can someone give me some suggestions as to how I can make a macro read the
JL>value in a field, rather than the fact that the field exists?
JL>I will be most appreciative of any assistance,
Use the GetFormResult$ command... ie
city$ = GetFormResult$("DropDown1")
city2$ = GetFormResult$("DropDown2")
If city$ = city2$ then....
Good luck
John
---
 þ OLXWin 1.00b þ Hope ain't in Arkansas....It's in "1996"
--- PCBoard (R) v15.3 (OS/2) 5 (05-17-9
---------------
* Origin: New England Online OS/2 Oriented BBS (617) 961-7870 (1:101/520)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.