Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this line of code....
Message
From
16/11/1999 17:18:06
 
 
To
16/11/1999 16:10:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00291618
Message ID:
00291671
Views:
17
>What's wrong with this line of code?
>
>IF thisform.Pageframe1.page1.Optiongroup1.Option2.value = .T.
>
>
>
>ENDIF
>
>I get a datatype mismatch. What do you use in the place of the word value?

If Option2 is an OptionButton, then the default values are numeric, not logical - a 0 indicates not selected, a 1 selected (I assume you'd use this for True) If Option2 is a checkbox, the values are 0 (unchecked), 1 (checked) or 2 (mixed value - only available in code.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform