Trigger and Pseudo_trigger

 

Fields that follow the "trigger" keyword are assigned to the command option buttons (under the text input field). Not so with the pseudo_trigger.

 

When the field that contains the "trigger" or "pseudo_trigger" keyword is accepted during interactive input, the C language function defined by "function =" is automatically invoked by the Input Manager. Input data gathered by the Input Manager, according to the template specification, is passed to the function via an object called the "input data object" (i.e. VDATA).

 

Following is a typical template format showing usage of the pseudo_trigger.
 

 

FIELD=prompt1

class = string

 

FIELD=prompt2

class = string

pseudo_trigger

 

FIELD=prompt3

class=number

callback=JumpBackToRegularPrompts

 

FIELD=place_holder

class=string

trigger

 

FIELD=option1

class=option

callback=OptionJumptoPrompt3

 

 

Under normal execution, the user will respond to prompts 1 and 2 and then the form will execute. When the user goes to option1, it may (based on input) jump to prompt3 to gather additional input. The callback on prompt3 will then jump to one of the first 2 prompts. Note: Only option1 shows up on the command option buttons.

Return to VX CAD/CAM Index