Page 1 of 1

[Command] setGlobalString

Posted: Sat Nov 06, 2021 6:05 pm
by Raddeck
GlobalVariable.setGlobalString(String)


USE:
Same as setGlobal(), just string instead of float
Set (add if it doesn't already exist) a global variable to a certain String.


TYPE: Command, non-Ref (ref-like syntax)
RETURNS: /
THEME: Variables
COMPARE: setGlobal, clearGlobal


EXAMPLE:

Code: Select all

BusinessName = enterString()
rkGlobalVariable.setGlobalString(BusinessName)

"My Business Name is <BusinessName>"


On another files:
BizNam = rkGlobalVariable.getGlobalString()
"My Business Name is <BizNam>