Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Triy to use macro substitution for object.property
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00250948
Message ID:
00251045
Views:
18
>Christian,
>
>Here's an alternative for you. In the refresh of each button put this code;
>
>
>LOCAL lcCheckBox
>lcCheckBox = "THIS.Chk" + SUBSTR(This.Name,LEN(ALLTRIM(This.Name))-2)) + ".VALUE
>This.Enabled = (&lcCheckBox = 1)
>
>

Jim, is there a reason to use that rather than:

this.enabled = (EVAL(lcCheckBox) = 1)

which avoids the issues of macro substitution?

>Then name the buttons and checkboxes as chk01 chk02 btn01, btn02 etc.. Once you've done this you can simply;
>
>Thisform.refresh() to get everything enabled and disabled.
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
Next
Reply
Map
View

Click here to load this message in the networking platform