Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many CASEs in DO CASE?
Message
 
 
À
02/06/2006 05:09:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01126584
Message ID:
01126715
Vues:
34
>
>Dmitry,
>ExecScript is easy but however it is slow and problematic at runtime (it's compiled with each call and if you need referencing other project elements -like a form,class antoher prg etc- then execscript cannot see them).
>For a similar necessity (sounds similar to me) what I did was to create a "dispatcher" code. What that code does is to call required proc/form with given parameters. A table which is included in exe holds proc/function calls as strings. ie:
>
>ActionID#1,doForm("myForm",myParameters)
>ActionID#2,libProcedure("myProcedure",myParameters)

Cetin,

I see now from your message here and another thread that Naomi pointed where you came across some problems with EXECSCRIPT. I will consider your approach of using what you call a "dispatcher" code. I am also looking into using COMPILE command. And Fabio made an insteresting suggestion of storing the compiled code in the memo field, I never thought of that. So I have many options now to consider.

Thank you for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform