Character Conversion Functions

Alpha Five provides the following character conversion functions.

Function

 

Description

*BIN_TO_HTML()

V6

Converts binary RTF text to HTML text.

*BIN_TO_RTF()

V6

Converts binary RTF text to RTF text.

*HTML_ESCAPE()

V6

Encodes ordinary text into HTML format.

*HTML_TO_BIN()

V6

Converts HTML text to binary RTF text.

*HTML_TO_PLAIN()

V6

Converts HTML text to plain ASCII text.

*HTML_TO_RTF()

V6

Converts HTML text to RTF text.

*PLAIN_TO_HTML()

V5

Converts plain ASCII text into HTML text.

*PLAIN_TO_RTF()

V5

Converts plain ASCII text into encoded RTF text.

*RTF_TO_BIN()

V6

Converts RTF text to binary RTF text.

*RTF_TO_HTML()

V6

Converts RTF text to HTML text.

*RTF_TO_PLAIN()

V6

Converts RTF text to plain ASCII text.

A5_ANSIDATE()

V6

Takes a date, either as a time or character, and converts it to a string, following ANSI C's ASCTIME()format.

A5_RFC81123DATE()

V6

Takes a date, either as a time or character, and converts it to a string, following the RFC 1123 format.

A5_RFC822DATE()

V6

Takes a date, either as a time or character, and converts it to a string, following the RFC 822 format.

A5_RFC850DATE()

V6

Takes a date, either as a time or character, and converts it to a string, following the RFC 850 format.

A5_T_FROM_RFCDATE()

V6

Converts a date string formatted by A5_ANSIDATE(), A5_RFC1123DATE(), A5_RFC822DATE(), or A5_RFC850DATE() into a time-date value.

ANSI_TO_OEM()

V5

Converts the specified Number of Characters in the Source Buffer from the ANSI (Windows) character set to the OEM (DOS) character set.

ASC()

V6

Returns the decimal ASCII_Value of the first letter in the specified Character_String.

CDATE()

V5

Converts a Date to a Formatted_Date character string in the form YYYYMMDD.

CDOW()

V5

CDOW()returns a character string containing the name of the day of the week for the specified Date.

CHR()

V5

Returns the Single_Character corresponding to the integer ASCII_Value.

CHR_MULTI()

V5

Produces a string with Count repetitions of the character specified by ASCII_Value.

CMONTH()

V5

Returns the Month_Name in the specified Date.

CHAR_TO_BLOB()

V5

Returns the Blob equivalent of the original character Input_String.

CONVERT_TYPE()

V5

Converts variables from one type to another, preserving the data if possible.

CRLF()

V5

Generates one or more CR-LF character sequences.

CTOD()

V5

Converts a character string containing date information to a Date value.

CTODT()

V6

Converts a date and time string to a time value.

CTOT()

V6

Converts a time string to a time value.

CYEAR()

V5

Returns a character string containing the year in the form YYYY based on the specified Date_Value.

DEC_TO_HEX()

V5

Returns the hexadecimal equivalent of an integer.

HEX_TO_DEC()

V5

Returns the integer equivalent of a hexadecimal number.

OEM_TO_ANSI()

V5

Converts the specified Number of Characters in the Source Buffer from the OEM (DOS) character set to the ANSI (Windows) character set.

S_QUOTE()

V6

Quotes character, numeric, logical, and date variables so they can be used in expressions.

STR()

V5

Converts a Number to a right-justified character string.

TIME()

V5

Returns a Formatted_String containing the system time.

TOTIME()

V5

Returns a formatted character string containing a time based on the specified Number_Of_Seconds past midnight.

VAL()

V5

Converts a Character_String to a numeric value.

ZBLANK()

V5

Converts a Number to a formatted right justified character string.

See Also

Character Functions