/
delGlobalVar

delGlobalVar

Description

Deletes a previously assigned global variable identified by name.

Shogun Post's scripting language supports global variables that are accessible across scripts within a session of Shogun Post. This command will delete a global variable specified by its name.

Functional area

Data retrieval

Command syntax

Syntax

delGlobalVar name

Arguments

NameTypeRequiredComments
namestringyesName of the variable to delete

Flags

None

Return value

void

Loading

Examples

Script A
// Define a global variable 
setGlobalVar myVar 1.1;...

Script B
// Check to make sure global variable set in Script A still exists
if (`getGlobalVarExists myVar`){ 
  
// Use it ... 
  
// Delete the global variable 
delGlobalVar myVar;

Additional information

Related commands


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks