Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Code Programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00147160
Message ID:
00147209
Views:
40
You simply cannot add code into a method at run-time, because Fox cannot compile it. As a workaround, you can put something like this in the method:

m.FileNo=FOPEN("C:\MyPath\MyPrgOnFly.txt")
DO WHILE !FEOF(m.FileNo)
m.CodeLine=FGETS(m.FileNo)
&CodeLine
ENDDO
=FCLOSE(m.FileNo)

and then, at run-time, write the code you want to execute into

C:\MyPath\MyPrgOnFly.txt

Hope this helps a bit...


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Loris Antonangeli, University of Oulu (Finland)
phone: +358-8-5565456, +358-40-5015645
e-mail: loris@cc.oulu.fi
http://cc.oulu.fi/~loris/loris.htm

Messages FOR FREE straight to my GSM-phone - follow instructions:
1) Go to http://www.mtn.co.za/sms/secure/text.html
2) Choose Network "Finland Telecom Finland 35840"
3) Enter my gsm-phone number +358405015645
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ennen olin epävarma - nyt en oikein tiedä...
Previous
Reply
Map
View

Click here to load this message in the networking platform