Hardware manual

Commands and Functions R-V Impact Reference Guide
Datalogic Automation Inc. 5-28
The syntax of this function is
TIMEVALUE (year, month, day, hour, minute, second)
This function returns a real number that based on the arguments. If an argument is missing or undefined, the
following default values are used:
year = 1970
month = January
day = 1
hour = 0
minute = 0
second = 0
Example:
time_var = yearday (TIMEVALUE (2005,12,23)) yields time_var = 356
TRIM()
This function removes any leading and trailing spaces from a string. Example:
var_string = TRIM (" This ") yields var_string = This
TRUE
This function always returns the value True. In this example, the value True is assigned to the variable myre-
sult. Example:
myresult = TRUE yields myresult = True
TYPE
This function returns the data type of the argument according to the following symbolic constant values:
SbTypeUndef if the argument is undef
SbTypeString if the argument is string.
SbTypeReal if the argument is real.
SbTypeInteger if the argument is integer
SbTypeArray if the argument is an array
Example:
the_string = "Welcome"
If TYPE(the_string) = SbTypeString then
type_is_string = TRUE
Else
type_is_string = FALSE
Endif
yields type_is_string = True
UBOUND()
This function returns the index number of the highest occupied element of the argument array. (Also see
Arrays on page 5-6.) Example:
for i = 1 to 5
mylist[i] = i
next
last_element = UBOUND(MYLIST)
yields
last_element = 5