actually a VFP interperter written in VFP , I don't think VFP is the best
language for that as well, I also don't think that large chunks of code
should be determined only in run-time, but that doesn't change the question
that was asked
btw I believe someone already wrote such an interperter (I think I saw it
in a site somewhere - I just don't remember which one (s))
Arnon
>And you'll end with a VFP compiler written in VFP... :) I sincerely think
>it's not the best language for this purpose... :)
>
>Vlad
>
>>you can also handle more complicated stuff but you have to write the
>parser
>>by yourself
>>e.g. if you see a FOR do the rest of the code inside a premade for loop
>>etc.
>>
>>Arnon
>>
>>
>>>The main problem is that you can't compile the generated code if you're
>>not
>>>in the development environment.
>>>
>>>If you have only "one line commands" in the memo fields you can run
them
>>>line by line using macrosubstitution. If the code is more complicate,
>you
>>>may try an utility that you can find here on UT, in the Files section,
I
>>>think (I don't remember its name right now :)).
>>>
>>>Vlad
>>>
>>>>Hi there:
>>>>Has anyone tried to generate a PRG and run it dynamically at run-time.
>>I
>>>have a table with a memo field with the code I want to execute at
>>run-time.
>>> This works under development mode but fails at run-time, since the
PRGs
>>I
>>>dynamically create are not "burned" in the EXE.
>>>>
>>>>Any ideas?
>>>>
>>>>TIA
>>>>
>>>> Antonio Lozada
>>>
>>>
>
>
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement