Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The EVAL function
Message
From
22/06/2001 10:10:40
 
 
To
22/06/2001 09:18:51
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00522089
Message ID:
00522423
Views:
6
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform