Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this sample, we will look at some options for storing temporary data for use between 2 scripts within the application.

VB Scripting contains three temporary storage variables, namely VBString1, VBString2, and VBString3. These values can be set using the Echo response, like the “Control Interaction” sample.

To demonstrate this, we will SET an arbitrary value when tabbing off the Job Number field and then show that value again when clicking the Allocate button.

Info

If you don’t like reading, you can watch the video.

Panel
panelIconId1f3a5
panelIcon:movie_camera:
panelIconText🎥
bgColor#DEEBFF

No videohttps://youtu.be/o7haVa5T-Uw

premium_VBSCRIPTING_product_userguide_UG - v0.1.pdf

Try it!

  • Right click on the “Job Number” text box and add the following script to the Lost Focus event.

 WScript.Echo “ ”

Info

NOTE: The Name field here can be any control on the screen. We arbitrarily picked the txtQuantity field.

  • Right click the “Allocate” button and add the following script to the Click event msgbox ObjectData.Item(“VBString1”)

  • Testing this by loading a Job and then clicking the “Allocate” button will show the value was stored and then retrieved.

Image RemovedImage Added