|
-
Jun 1st, 2001, 01:37 AM
#1
Thread Starter
Hyperactive Member
Eval Equivalent
Only people familiar with Java or Flash scripting will know what i am talking about.
but I am looking for an eqivalent for the Eval () function of Java.
For those who are not familiar with Java, what eval does is the following.
considering eval woks in VB you would be able to do this :
dim vCommand as string
vCommand = "Me.caption = 1"
Eval (vCommand) ' Will actually execute the string passed to it at RUN TIME ... which pretty usefull sometimes.
-
Jun 1st, 2001, 01:59 AM
#2
VB does not have an eval function.
However, the Microsoft script control has an eval function, which has limited functionality.
You can't enter an expression like the one you used in your example, since you can't reference other components on the form or the form itselve. You can evaluate things like "((12/8)*3)^2"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|