MYSVAR

Variable that can store and return the string values you specify. You can use multiple MySVar variables in a template by giving them different names.

Syntax

This sets the value of a MySVar variable and returns the number 0.

The "mysvar_name" is not case sensitive, so MYSVAR "Name1" is the same as MYSVAR "name1". You cannot substitute an SVar or a MySVar for "mysvar_name".

This returns the string value of the specified MySVar variable. If the specified MySVar has not been set, this command returns an empty string.

Return value

See above.

Notes

There is no limit to the number of MySVars that can be used within a template.

To clear a MySVar, set it to an empty string. To clear all variables, including MySVars, use the INITVARS command.

All variables, including MySVars, keep their assigned value until they are cleared or until you exit the GainSeeker module that was running the template. This allows a variable to be set by one template and then used by a subsequent template.

When you save a stored session, all variables – including MySVars – are saved with the stored sessions. When you open this stored session, the values of these saved variables are retrieved.

Some MYSVAR values may be set by template commands. These include:

mysvar_name

Command

Chart_Error

CHT_DASH
CHT_DMS
CHT_SPC

CommErrorMsg

DE_OPT 16, 4

DATE_CHK

DATE_CHK

DE_Cht_Contents

DE_OPT 29, row_number

Eval_Error

EVAL

Loop_Error

LOOP

LQ_Btn_Value

LIST_Q

MAV_Error

MAV

OPCErrorMsg

DE_OPT 16, 3

OPC_RB

OPC_RCVBUFFER

PocketFormName

POCKETFORM

PocketFormDate

POCKETFORM

PocketFormComments

POCKETFORM

RS0_portnumber

RS0, FL0

See also: MYNVAR, SVAR, NVAR, MYSARR, MYNARR

Examples

MYSVAR " DMS_Standard" = CONCAT [B1], "  ", [C1]

This formula uses the values in cell [B1] and cell [C1] to set a MySVar named " DMS_Standard".

DISPLAY_DESC (MYSVAR " DMS_Standard")

This formula displays the value of the MySVar named " DMS_Standard" in the box normally used to display the description for the SPC standard.

MYSVAR " DMS_Standard" = ''

This formula clears the MySVar named " DMS_Standard".