Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Runtime creation of a single multiline command prg
Message
From
09/04/2004 05:30:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00893462
Message ID:
00893486
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all
>
>I have successfully created and DO &filename. of a runtime generated EDIT (BROWSE) single multiline command from a prg file.
>
>What will happen at the clients end?
>
>Please advise.

Depends on version. With 6 you could :
compile (m.filename)
do (m.filename)

With 7 and later you could also use :
ExecScript(FileToStr(m.FileName))

But beware ExecScript version compiles with each run and hence slows down if would be called n times. VFP6 approach is better than.

PS: Compile is supported for some other files too.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform