Specifications
Section 10. CRBASIC Programming Instructions
10-26
Replace
Searches a string for a substring, and replace that substring with a different
string.
Syntax
variable = Replace (SearchString, SubString, ReplaceString)
StrComp
Compares two strings by subtracting the characters in one string from the
characters in another
Syntax
Variable = StrComp (String1, String2)
SplitStr
Splits out one or more strings or numeric variables from an existing string.
Syntax
SplitStr (SplitResult, SearchString, FilterString, NumSplit,
SplitOption)
Trim
Returns a copy of a string with no leading or trailing spaces.
Syntax
variable = Trim (TrimString)
UpperCase
Converts a string to all uppercase characters
Syntax
String = UpperCase (SourceString)
10.8 Clock Functions
Within the CR1000, time is stored as integer seconds and nanoseconds into the
second since midnight, January 1, 1990.
ClockReport
Sends the datalogger clock value to a remote datalogger in the PakBus
network.
Syntax
ClockReport (ComPort, RouterAddr, PakBusAddr)
ClockSet
Sets the datalogger clock from the values in an array
Syntax
ClockSet (Source)
DaylightSaving
Defines daylight saving time. Determines if daylight saving time has begun or
ended. Optionally advances or turns-back the datalogger clock one hour.
Syntax
variable = DaylightSaving (DSTSet, DSTnStart, DSTDayStart,
DSTMonthStart, DSTnEnd, DSTDayEnd, DSTMonthEnd, DSTHour)