SetVariableValue Text Command

SETVARIABLEVALUE Text Commands

Sets the string of a user variable.

setvariablevalue

value/s The new string for the variable.

VARIABLE The document/chapter/variable name.

Default=current.

Examples:

'setvariablevalue "Bill Watson"'

'setvariablevalue "Bill Watson" variable ยจ
MyBook.doc~author'

 

SetVariableValue  Command Definition  url:PGScmd/setvariablevalue
  created:2006-03-31 10:53:01   last updated:2006-03-31 10:53:01
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For SetVariableValue
Dan Kilroy wrote...2006-05-04 16:51:15

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

SetVariableValue (varvalue [STYLEVAR document:...-varname])


Parameters:


Results:


Notes:


See Also:
DeleteVariable, GetVariables, GetVariableValue, InsertName, NewVariable, SetVariableName, SetVariableValue


Examples:
Python:


ARexx:

Applescript:

Tim Doty wrote...2007-05-08 15:00:39

It is highly recommended to always use the long form and explicitly name the variable whose value is to be set.

Code:

NewVariable('my_variable', 'initial value')
GetVariableValue('VARIABLE', 'my_variable')
SetVariableValue('new value', 'VARIABLE', 'my_variable')

User Contributed Comments For SetVariableValue