Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VB do this?
Message
De
12/01/2001 12:19:07
 
 
À
12/01/2001 11:53:18
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00462911
Message ID:
00463052
Vues:
18
>I do not think it can do it. I started asking that question about 3 years ago and no one has been able to show me a way to do it.
>
>The macro Sub (&) the EVAL() are what set VFP apart from many other development platforms. There are the purists that say that you should not use them, but I have been involved in huge projects that table drive the code and the EVALS() and "&" are used everywhere - without a significant loss of speed. If there is a loss of speed, the benefit to table drive applications far out weighs any loss on speed.
>
>The reason that you can do the EVAL() and & substitutions is because of the huge VFP runtime library. That is what I have been told anyway.
>
>I have started getting more involved with VB and the more I do the more I miss VFP, but you have to go with what's popular -- not necessarily better.
>
>I will be watching this so see a response from anyone else.
>
>Mark

You can do this in VB by using the ScriptControl object. There's a couple of methods that do it within this object, Eval() & ExecuteStatement. See this article for details: http://www.microsoft.com/mind/defaultframe.asp?page=/mind/0799/script/script.htm
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform