Variables

1) User variables

Defined by user. The type of a variable is determined when a value (integer or string) is assigned to it for the first time. Once the type of the variable is determined, values of a different type cannot be assigned to it.

2) System variables

Each system variable has a predefined type and value. Used with particular commands.

Variables Type Initial value Related commands
groupmatchstr1 ... groupmatchstr9 string "" waitregex
inputstr string "" recvln, waitln, waitn, waitrecv, waitregex, sprintf, passwordbox, filenamebox, inputbox
matchstr string "" waitregex
param2 ... param9 string *1 *1
result integer 0 bplusrecv, bplussend, connect, cygconnect, kmtfinish, kmtget, kmtrecv, kmtsend, logopen, quickvanrecv, quickvansend, recvln, testlink, wait, waitevent, waitln, waitn, waitrecv, waitregex, xmodemrecv, xmodemsend, zmodemrecv, zmodemsend, sprintf, str2int, strcompare, strlen, strmatch, strscan, fileconcat, filecopy, filecreate, filedelete, fileread, filereadln, filerename, filesearch, filestrseek, filestrseek2, findfirst, findnext, clipb2var, crc32file, getdate, gettime, getver, ifdefined, var2clipb, yesnobox
timeout integer 0 recvln, wait, waitevent, waitln, waitrecv, waitregex
mtimeout *2 integer 0 recvln, wait, waitevent, waitn, waitln, waitrecv, waitregex

*1 The second to ninth command line parameter of MACRO. The first parameter is the macro file name. See "Command line".
*2 Precision is about 50 msec.