Skip to main content

Search

Search

Set global variable (script)

Comments

1 comment

  • Avatar
    Laura Vela
    Moderator

    Hello Jose,

    Thank you for using our forums!

    One of the most important things when working with VB scripts is taking into account when the script is going to be executed. As you can see from your screenshot, when you select an Event you get a brief description of when it is going to be executed:

    Besides placing the script on OnProcessData, when the object also has the Script Type - Event Control Scripts:

     

    You can also make use of the following events for executing the script:

    For example, if you are working with a database, probably it would make more sense to place the script on the OnNewRecord event:

    Let us know if this helps!

    0

Please sign in to leave a comment.