Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The EVAL function
Message
De
22/06/2001 10:10:40
 
 
À
22/06/2001 09:18:51
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00522089
Message ID:
00522423
Vues:
7
>I tried your example using your code and it worked fine. When I used the following code, it didn't work
>
>Dim oSC As ScriptControl
>Set oSC = New ScriptControl
>oSC.Language = "VBScript"
>
>Dim y As String
>y = "AutomationLetterWordDemo.txtCustomerName.Text"
>y = oSC.Eval(y)
>Debug.Print oSC.Eval(y)
>
>The string represented by y is a valid Form Text Control and contains a value of "Dan
>
>But when I execute "y = oSC.Eval(y)", the value of y is still "AutomationLetterWordDemo.txtCustomerName.Text"
>
>Tis a puzzle to me...

It has to be a valid VBScript expression. In your example the text should be enclosed within quotes for Eval to return the text box contents.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform