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
MYSVAR "mysvar_name" = "string"
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".
MYSVAR "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 |
|
CommErrorMsg |
|
DATE_CHK |
|
DE_Cht_Contents |
|
Eval_Error |
|
Loop_Error |
|
LQ_Btn_Value |
|
MAV_Error |
|
OPCErrorMsg |
|
OPC_RB |
|
PocketFormName |
|
PocketFormDate |
POCKETFORM |
PocketFormComments |
POCKETFORM |
RS0_portnumber |
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".