Bt_CvType() Function
<< Click to Display Table of Contents >>
Bt_CvType() Function
|
|
Purpose
Get an internal Btrieve data type from a VO2Btrieve type code, or vice versa
Prototype
FUNCTION Bt_CvType ( uType AS USUAL, lLong := FALSE AS LOGIC ) AS USUAL PASCAL
Argument(s)
<uType> is a data type. Codes for Btrieve data types are numeric; VO2Btrieve's are
character strings.
<lLong> is an optional logic that tells the system to return a description
of the datatype in stead of a translation. Default no descriptions are returned
Return
USUAL If the argument is an internal Btrieve data type, a VO2Btrieve type code is
returned. If it is a VO2Btrieve type code, an internal Btrieve data type is returned.
Description
This function is useful when reading BTrieve data dictionary files. It is not used in a typical application. The Btrieve data types and their associated VO2Btrieve type codes are:
Btrieve Vo2Bt Description
0 C Character
1 NI Integer
2 NF IEEE Floating Point (FLOAT)
3 D Date
4 CT Time
5 NP Packed Decimal (DECIMAL)
6 N$ Packed Decimal (MONEY)
7 L Logical
8 N Numeric
9 NB Basic Floating Point (BFLOAT)
10 CL Pascal character (LSTRING)
11 CZ AsciiZ (ZSTRING)
12 M Memo (NOTE)
13 ML Pascal Memo (LVAR)
14 NU Unsigned
15 N+ Autoincremented Integer
16 LI Bit
17 NS Numeric STS
18 NA Numeric SA
19 NC Currency
20 CD TimeStamp (DateTime)
21 MB Blob (LongVarBinary)
25 CW Wstring
26 C0 WZString
Example(s)
? BT_CVTYPE(10)
CL
?BT_CVTYPE("CL")
10