18 string operations – Rice Lake iRite IDE User Manual
Page 82

78
920i
Programming Reference
TimerMode
type TimerMode is (TimerOneShot, TimerContinuous, TimerDigoutON, TimerDigoutOFF);
Units
type Units is (Primary, Secondary, Tertiary);
UnitType
type UnitType is (kilogram, gram, ounce, short_ton, metric_ton, grain, troy_ounce, troy_pound, long_ton,
custom, none, pound);
WgtMsg
type WgtMsg is array[12] of integer;
5.18 String Operations
Asc
Returns the ASCII value of the first character of string S. If S is an empty string, the value returned is 0.
Method Signature:
function Asc (S : String) : Integer;
Chr$
Returns a one-character string containing the ASCII character represented by I.
Method Signature:
function Chr$ (I : Integer) : String;
Hex$
Returns an eight-character hexadecimal string equivalent to I.
Method Signature:
function Hex$ (I : Integer) : String;
LCase$
Returns the string S with all upper-case letters converted to lower case.
Method Signature:
function LCase$ (S : String) : String;
Left$
Returns a string containing the leftmost I characters of string S. If I is greater than the length of S, the function
returns a copy of S.
Method Signature:
function Left$ (S : String; I : Integer) : String;
Len
Returns the length (number of characters) of string S.
Method Signature:
function Len (S : String) : Integer;
Mid$
Returns a number of characters (specified by length) from string s, beginning with the character specified by
start
. If start is greater than the string length, the result is an empty string. If start + length is greater
than the length of S, the returned value contains the characters from start through the end of S.
Method Signature:
function Mid$ (S : String; start : Integer; length : Integer) : String;
Oct$
Returns an 11-character octal string equivalent to I.
Method Signature:
function Oct$ (I : Integer) : String;