Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

None

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.

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

Try it!

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

 WScript.Echo “ ”

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.

  • No labels