Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO a command stored in a table field?
Message
From
07/03/2000 20:01:35
 
 
To
07/03/2000 19:17:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00342932
Message ID:
00343049
Views:
18
>>Programatically, how do I run this command? The table name is mmenu.
>
>&field
>
>You can not use the table.field syntax in this case cuz the . in the middle will terminate the expansion. So save it to alocal variable first if needed. If this is a nulti line memo field, you can do:
>
>StrToFile(table.field, 'temp.prg')
>compile temp.prg
>do temp

>
>Anything can go in this case.

I'd add a second field to contain the comma-delimited list of values to pass to the called function, so that rather than DO TEMP, you'd

lcArgsFld = table.field2
*
* You might do some things to resolve substrings in lcArgsFld
* into things within the execution environment here. YMMV.
*
=temp(&lcArgsFld)
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