Results 1 to 2 of 2

Thread: Eval Equivalent

  1. #1

    Thread Starter
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    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.
    - regards -
    - razzaj -

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    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
  •  



Click Here to Expand Forum to Full Width