Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running commands inside a memo
Message
De
11/08/1999 15:33:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00252666
Message ID:
00252681
Vues:
11
Hi Claudio,

>I have a table with (among several fields) a memo field into which I keep a lot of code (it's suck prg's). In a determined point of my application, I need to run this code. Running into interactive mode, I found a solution: I use TextMerge to create a temporary prg with the code into the memo, then, run the prg. But the problem comes in the runtime: I use the VFP 5.0, and it doesn't compile the prg, so I have a bug in this point.

As you might know, this is possible in VFP 6 SP3. In your case, you could do it with macro expansion if your sure there are no if checks or for loops or anyhting like that. You could build the memo and dynamically remove the ifs if need be.
ALINES(array, memo)
FOR EACH lcCommand IN array
  &lcCommand
ENDFOR
Also do a search for something called CodeBlock. I forgot who did it, I'm sure someone else could tell you about it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform