previous next top contents index framed top this page unframed
The PROCEDURE $typeName returns a STRING type name corresponding to a type code typeCode. The correspondence between type codes and names is as follows:
| Type Code | Name |
|---|---|
| booleanCode | BOOLEAN |
| integerCode | INTEGER |
| longIntegerCode | LONG INTEGER |
| realCode | REAL |
| longRealCode | LONG REAL |
| bitsCode | BITS |
| longBitsCode | LONG BITS |
| stringCode | STRING |
| addressCode | ADDRESS |
| charadrCode | CHARADR |
| pointerCode | POINTER |
| $recordCode | $RECORD |
| $procvarCode | $PROCVAR |
| $boolean1Code | BOOLEAN(1) |
| $boolean2Code | BOOLEAN(2) |
| $boolean4Code | BOOLEAN(4) |
| $integer1Code | INTEGER(1) |
| $integer2Code | INTEGER(2) |
| $integer4Code | INTEGER(4) |
| $integerSigned1Code | INTEGER(-1) |
| $integerSigned2Code | INTEGER(-2) |
| $integerSigned4Code | INTEGER(-4) |
| $longInteger1Code | LONG INTEGER(1) |
| $longInteger2Code | LONG INTEGER(2) |
| $longInteger4Code | LONG INTEGER(4) |
| $longIntegerSigned1Code | LONG INTEGER(-1) |
| $longIntegerSigned2Code | LONG INTEGER(-2) |
| $longIntegerSigned4Code | LONG INTEGER(-4) |
| $bits1Code | BITS(1) |
| $bits2Code | BITS(2) |
| $bits4Code | BITS(4) |
| $longBits1Code | LONG BITS(1) |
| $longBits2Code | LONG BITS(2) |
| $longBits4Code | LONG BITS(4) |
The only valid ctrlBits bit is errorOK. If not specified, an error message is issued if typeCode is not a valid MAINSAIL type code. The null STRING is returned for invalid MAINSAIL type codes.
MAINSAIL Language Manual, Section 48.28