Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Code Programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00147160
Message ID:
00147209
Vues:
41
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ä...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform