### Passing Variables To and From BASIC Scripts

From PC-DMIS code, variables can only be passed to BASIC scripts, not from BASIC scripts.

The only supported variable types that can be passed into BASIC scripts from PC-DMIS are:

- Integer

- String

- Double

Consider these examples:

Note: PC-DMIS variables only hold values during part program execution; at learn time, PC-DMIS variables will always have a value of zero.

More:

Example 1: Using the Function Line to Pass Variables

Example 2: Using the GetVariableValueand SetVariableValueMethods to Pass Variables