FANDOM


String Functions Edit

Statements and Procedures that work with strings.

Description: Edit

These statements and procedures provide many ways to create and manipulate strings and sub-strings. Numbers can be converted to strings and vice-versa. Procedures are also provided to aid in serialization of numeric data, perhaps for persistent storage.

Creating Strings Edit

String Edit

Standard data type: 8 bit character string.

STRING (Function) Edit

Returns a String of multiple characters.

ZString Edit

Standard data type: null terminated 8 bit character string.

WString Edit

Standard data type: wide chfracter string.

Returns a WString of multiple characters.

Space Edit

Returns a String consisting of spaces.

WSPACE Edit

Returns a WString consisting of spaces.

LEN Edit

Returns the length of a string in characters.

Character Conversion Edit

Asc Edit

Returns an Integer representation of an character.

Chr Edit

Returns a string of one or more characters from their ASCII Integer representation.

WChr Edit

Returns a WString of one or more characters from their Unicode Integer representation.

Numeric/Boolean to String Conversions Edit

Bin Edit

Returns a binary String representation of an integral value.

WBin Edit

Returns a binary WString representation of an integral value.

Hex Edit

Returns a hexadecimal String representation of an integral value.

WHex Edit

Returns a hexadecimal WString representation of an integral value.

Oct Edit

Returns an octal String representation of an integral value.

WOct Edit

Returns an octal WString representation of an integral value.

Str Edit

Returns the String representation of numeric value or boolean.

WStr Edit

Returns the WString representation of numeric value.

Format Edit

Returns a formatted String representation of a Double.

String to Numeric Conversions Edit

Val Edit

Returns the Double conversion of a numeric string.

ValInt Edit

Returns the Integer conversion of a numeric string.

LalLng Edit

Returns the Long conversion of a numeric string.

ValUInt Edit

Returns the UInteger conversion of a numeric string.

ValULng Edit

Returns the ULong conversion of a numeric string.

Numeric Serialization Edit

Mkd Edit

Returns an eight character String representation of a Double.

Mki Edit

Returns a four character String representation of a Integer.

Mkl Edit

Returns a four character String representation of a Long.

MkLongInt Edit

Returns an eight character String representation of a Longint.

Mks Edit

Returns a four character String representation of a Single.

MkShort Edit

Returns a two character String representation of a Short.

Cvd Edit

Returns a Double representation of an eight character String.

Cvi Edit

Returns an Integer representation of a four character String.

Cvl Edit

Returns a Long representation of a four character String.

CvLongInt Edit

Returns a Longint representation of an eight character String.

Cvs Edit

Returns a Single representation of a four character String.

CvShort Edit

Returns a Short representation of a two character String.

Working with Substrings Edit

Left Edit

Returns a substring of the leftmost characters in a string.

Mid (Function) Edit

Returns a substring of a string.

Right Edit

Returns a substring of the rightmost characters in a string.

LCase Edit

Returns a copy of a string converted to lowercase alpha characters.

UCase Edit

Returns a copy of a string converted to uppercase alpha characters.f

LTrim Edit

Removes surrounding substrings or characters on the left side of a string.

RTrim Edit

Removes surrounding substrings or characters on the right side of a string.

Trim Edit

Removes surrounding substrings or characters on the left and right side of a string.

InStr Edit

Returns the first occurrence of a substring or character within a string.

InStrRev Edit

Returns the last occurrence of a substring or character within a string.

Mid (Statement) Edit

Copies a substring to a substring of a string.

LSet Edit

Left-justifies a string.

RSet Edit

Right-justifies a string.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.