Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro Sub question
Message
From
19/11/1998 13:23:22
 
 
To
19/11/1998 10:48:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00159263
Message ID:
00159397
Views:
22
>>Hello
>>
>>x='1'
>>
>>Why this code works:
>>z='txtYear'+(x)
>>*Thisform.&z..VALUE = 1111
>>
>>and This does not:
>>Thisform.('txtYear'+(x)).VALUE = 1111
>>
>>Thanks
>() are used for name expressions (ie: use (cFilename)). Well also this would work :
with evaluate("Thisform.txtYear"+x)
>  .Value = 1111
>endwith
Cetin

As would:

STORE 1111 TO ("thisform."+z+'.value')
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