Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running *.prg with just run time files
Message
From
19/06/2001 02:05:19
 
 
To
18/06/2001 11:54:04
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00519996
Message ID:
00520863
Views:
15
>a back door solution for SMALL tasks is to use a text file ( program.txt )
>and ¯oexpand each line!
>
>eg
>use program.dbf && line c250
>zap
>append from program.text
>scan
>tcom=line
>&tcom
>endscan
>
>Plus you can create a new ".prg" on the fly, and execute it!
>
>( I developed this building kermit scripts from foxplus, needing phone #,s passwords, etc and find it works well in data driven programs where you can't keep tables on the right record, just append to the text file as you go, build the "prg" , and then run it! )

Sure, this "sort of" works, as long as you don't need any structures, like IF/ENDIF, SCAN/ENDSCAN, etc. But since SP3, you can write an entirely new .PRG file, with any commands that are supported by the runtime, and you can COMPILE it and execute it. You just can't tell it to DO your.prg and have it automatically execute it, like the developer's environment can do.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform