A user defined conversion is coded as a stored procedure subroutine (coded in SYSPROCS) that is passed 4 parameters. The name of the user defined conversion is the name of your subroutine. The syntax and arguments are described below.
Syntax | Subroutine Conversion_Name(type, value, branch, return_value) Conversion_Name is the name of the user-defined subroutine. When calling a user-defined conversion in a BASIC+ program, pass the name of this name as the conversion argument. For example, to call a conversion subroutine called ROMAN, that converts Latin numerals to Roman numerals, you might use the following statement: x = OConv( Data, "[ROMAN]") When calling a subroutine using the IConv() or OConv() functions, the subroutine name must be in uppercase, square brackets, enclosed in quotation marks, as illustrated above. When calling a subroutine from the Validation/Conversion display of the Form Designer, or from the Table Designer, do not enclose the name in quotation marks. |
Parameters |
|
The | The conversion can use the Status() function to report whether a conversion has been successful. The conventional values for this function are:
|