Technical FAQs

Ask a Question

Unity Pro: What are the keywords which can not be used as variable names?

In addition of the rules given in the online Help, below the list of the keywords which can not be used as variable names.
Unity Pro will provide following error message when trying to use them :  "reserved variable names, error E1235".

Keywords List:
"ACTION"
"ADD"
"AND"
"ANDN"
"ANY"
"ANY_ARRAY"
"ANY_ARRAY_BOOL"
"ANY_ARRAY_EBOOL"
"ANY_ARRAY_BYTE"
"ANY_ARRAY_WORD"
"ANY_ARRAY_DWORD"
"ANY_ARRAY_LWORD"
"ANY_ARRAY_SINT"
"ANY_ARRAY_USINT"
"ANY_ARRAY_INT"
"ANY_ARRAY_UINT"
"ANY_ARRAY_DINT"
"ANY_ARRAY_UDINT"
"ANY_ARRAY_LINT"
"ANY_ARRAY_ULINT"
"ANY_ARRAY_REAL"
"ANY_ARRAY_LREAL"
"ANY_ARRAY_TIME"
"ANY_ARRAY_DATE"
"ANY_ARRAY_TOD"
"ANY_ARRAY_DT"
"ANY_ARRAY_STRING"
"ANY_ARRAY_WSTRING"
"ANY_BIT"
"ANY_DATE"
"ANY_DERIVED"
"ANY_ELEMENTARY"
"ANY_ELEMENTARY_REF_ANY"
"ANY_BOOL"
"ANY_INT"
"ANY_IODDT"
"ANY_MAGNITUDE"
"ANY_NUM"
"ANY_REAL"
"ANY_SIGNED_NUM"
"ANY_SIGNED_INT"
"ANY_STRING"
"ARRAY"
"AT" 
"BOOL"
"BY"  
"BYTE" 
"CAL"  
"CALC"        
"CALCN"       
"CASE"        
"CONFIGURATION"
"CONSTANT"     
"DATE"         
"DATE_AND_TIME"
"DINT"         
"DIV"          
"DO"           
"DT"           
"DWORD" 
"EBOOL" 
"ELSE"  
"ELSIF" 
"EN"    
"END_ACTION"     
"END_CASE"       
"END_CONFIGURATION"
"END_FOR"         
"END_FUNCTION"    
"END_FUNCTION_BLOCK"
"END_IF"          
"ENO"             
"END_PROGRAM"     
"END_REPEAT"      
"END_RESOURCE" 
"END_STEP"     
"END_STRUCT"   
"END_TYPE"     
"END_VAR"      
"END_WHILE"    
"END_TRANSITION"
"EQ"           
"EXIT"         
"F_EDGE"       
"FALSE"        
"FOR"          
"FROM"         
"FUNCTION"     
"FUNCTION_BLOCK"
"GE"            
"GT"            
"IF"            
"INITIAL_STEP"  
"INT"           
"JMP"           
"JMPC"          
"JMPCN"         
"LD"            
"LDN"           
"LE"            
"LINT"          
"LREAL"         
"LT"            
"LWORD"         
"MOD"          
"MUL"
"NE"
"NOT"
"NULL"        
"OF"
"ON"
"OR"
"ORN"
"PROGRAM"     
"R_EDGE"      
"READ_ONLY"   
"READ_WRITE"  
"REAL"        
"REF_ANY"   
"REF_TO"
"REPEAT"       
"RESOURCE"     
"RET"          
"RETAIN"       
"RETC"         
"RETCN"        
"RETURN"       
"SINT"         
"ST"           
"STEP"         
"STN"          
"STRING"       
"STRUCT"       
"SUB"          
"TASK"         
"THEN"         
"TIME"     
"TIME_OF_DAY"
"TO"         
"TOD"        
"TRANSITION"  
"TRUE"        
"TYPE"        
"UDINT"       
"UINT"        
"ULINT"       
"UNTIL"   
"USINT"   
"VAR"     
"VAR_ACCESS"    
"VAR_CONFIG"    
"VAR_EXTERNAL"  
"VAR_GLOBAL"    
"VAR_IN_OUT"    
"VAR_INPUT"     
"VAR_OUTPUT"    
"VAR_PUBLIC"    
"VAR_TEMP"      
"WHILE"         
"WITH"          
"WORD"          
"WSTRING"       
"XOR"           
"XORN"          

 
Was this helpful?
What can we do to improve the information ?