Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Variable Name Reservations
Topic Summary:
Created On: 11/30/2017 02:11 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 11/30/2017 02:11 PM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

The below names are reserved within the Automate variable engine and cannot be given to Automate variables:

ABS
ARRAY
ASC
ASCB
ASCW
ATN
CALLBYNAME
CALLERSLINE
CALLERSSYMBOL
CBOOL
CBYTE
CCHAR
CCUR
CDATE
CDBL
CDEC
CDYNAMIC
CHOOSE
CHR
CHRB
CHRW
CHUGE_
CINT
CLIPBOARD
CLNG
COBJ
COMMAND
COS
CREATEOBJECT
CSBYTE
CSHORT
CSNG
CSTR
CTYPE
CUHUGE_
CUINT
CULNG
CURDIR
CUSHORT
CVAR
CVDATE
CVERR
DATE
DATEADD
DATEDIFF
DATEPART
DATESERIAL
DATEVALUE
DAY
DDEINITIATE
DDEREQUEST
DECODE64
DECODE64B
DECRYPT64
DECRYPT64B
DIR
DIRECTCAST
ENCODE64
ENCODE64B
ENCRYPT64
ENCRYPT64B
ENVIRON
EOF
ERR
ERROR
ERRORTOSTRING
EVAL
EXP
FILEATTR
FILEDATETIME
FILELEN
FIX
FORMAT
FREEFILE
GETALLSETTINGS
GETATTR
GETFILEPATH
GETLOCALE
GETMODULEINSTANCE
GETOBJECT
GETSETTING
GETTYPE
HEX
HOUR
IF
IIF
INPUT
INPUTBOX
INPUTSTRING
INSTR
INSTRB
INSTRREV
INT
ISARRAY
ISDATE
ISDBNULL
ISEMPTY
ISERROR
ISMISSING
ISNOTHING
ISNULL
ISNUMERIC
ISOBJECT
ISREFERENCE
JOIN
KEYNAME
LBOUND
LCASE
LEFT
LEFTB
LEN
LENB
LINEINPUT
LOC
LOF
LOG
LSET
LTRIM
MACROCHECK
MACROCHECKTHIS
MACRODIR
MID
MIDB
MINUTE
MODULELOAD
MODULELOADTHIS
MONTH
MONTHNAME
MSGBOX
NOW
OCT
QBCOLOR
REPLACE
RGB
RIGHT
RIGHTB
RND
ROUND
RSET
RTRIM
SECOND
SEEK
SGN
SHELL
SHOWPOPUPMENU
SIN
SPACE
SPLIT
SQR
STR
STRCOMP
STRCONV
STRDUP
STRREVERSE
SYSTEMTYPENAME
TAN
TIME
TIMER
TIMESERIAL
TIMEVALUE
TRIM
TRYCAST
TYPENAME
UBOUND
UCASE
VAL
VARTYPE
VBTYPENAME
WEEKDAY
WEEKDAYNAME
WIN16
WIN32
WIN64
YEAR


Variable naming restrictions
There are limitations to the names that can be given to Automate variables. These limitations derive from the fact that when the expressions between % signs are evaluated as a script, even if they are a simple variable name. Therefore all BASIC Script keywords, functions names, and operators are forbidden as variables names (e.g. while, wait, like, instr, date, time, now, daysinyear, etc ).

Also all Windows environment variables such as PATH, DATE, TMP, PROMPT are also reserved and cannot be declared as new variables. They are, however, accessible and readable, whether or not they were declared "as parameters" in an AMVARIABLE statement.

-------------------------

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1890 guests browsing this forum, which makes a total of 1890 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog