Campbell Scientific CR3000 Micrologger User Manual

Page 506

Advertising
background image

Appendix A. CRBasic Programming Instructions

506 

 

 

CheckSum 
Returns a checksum signature for the characters in a string. 

Syntax 

Variable = CheckSum(ChkSumString, ChkSumType, ChkSumSize)

CHR 
Inserts an ANSI character into a string. 

Syntax 

CHR(Code)

FormatFloat 
Converts a floating‐point value into a string.  Replaced by SPrintF()

Syntax 

String = FormatFloat(Float, FormatString)

FormatLong 
Converts a LONG value into a string.  Replaced by SPrintF()

Syntax 

String = FormatLong(Long, FormatString)

FormatLongLong 
Converts a 64‐bit LONG integer into a decimal value in the format of a string 
variable. 

Syntax 

FormatLongLong(LongLongVar(1))

HEX 
Returns a hexadecimal string representation of an expression. 

Syntax 

Variable = HEX(Expression)

HexToDec 
Converts a hexadecimal string to a float or integer. 

Syntax 

Variable = HexToDec(Expression)

InStr 
Finds the location of a string within a string. 

Syntax 

Variable = InStr(Start, SearchString, FilterString,

SearchOption)

LTrim 
Returns a copy of a string with no leading spaces. 

Syntax 

variable = LTrim(TrimString)

Left 
Returns a substring that is a defined number of characters from the left side of 
the original string. 

Syntax 

variable = Left(SearchString, NumChars)

Advertising