7 string functions, 8 conversion functions, String functions -50 – Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 186: Conversion functions -50

Advertising
background image

Section 5. Real-Time Tools

5.2.1.4.7 String Functions

Function

Description

Hex

Returns a hexadecimal string representation of an

expression.

HexToDec

Converts a hexadecimal string to a float or integer.

InStr

Finds the location of a string within a string.

InStrRev

Finds the location of a string within a string. (Differs

from InStr in that it searches from the end of the string

rather than from the start of the string.)

Left

Returns a substring that is a defined number of

characters from the left side of the original string.

Len

Returns the number of bytes in a string.

LTrim

Returns a copy of a string with no leading spaces.

Mid

Returns a substring that is within a string.

Replace

Used to search a string for a substring, and replace that

substring with a different string.

Right

Returns a substring that is a defined number of

characters from the right side of the original string.

RTrim

Returns a copy of a string with no trailing spaces.

Space

Returns a string value that is filled with a defined

number of spaces

StrComp

Compares two strings by subtracting the characters in

one string from the characters in another.

StrReverse

Returns a copy of a string with the characters in reverse

order.

Trim

Returns a copy of a string with no leading or trailing

spaces.

5.2.1.4.8 Conversion Functions

Function

Description

ToDate

Converts a value to a date.

ToFloat

Converts a value to a floating point number.

ToInt

Converts a value to an integer.

5-50

Advertising