This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
GET FIELD PROPERTIES
|
GET FIELD PROPERTIES ( fieldPtr | tableNum {; fieldNum}; fieldType {; fieldLength {; indexed {; unique {; invisible}}}} ) | ||||||||
Parameter | Type | Description | ||||||
fieldPtr | tableNum | Pointer, Longint |
![]() |
Table number or Field pointer | |||||
fieldNum | Longint |
![]() |
Field number if Table number is passed | |||||
fieldType | Longint |
![]() |
Type of field | |||||
fieldLength | Longint |
![]() |
Length of field, if Alphanumeric | |||||
indexed | Boolean |
![]() |
True = Indexed, False = Non indexed | |||||
unique | Boolean |
![]() |
True = Unique, False = Non unique | |||||
invisible | Boolean |
![]() |
True = Invisible, False = Visible | |||||
The GET FIELD PROPERTIES command returns information about the field specified by fieldPtr or by tableNum and fieldNum.
You either pass:
After the call:
Constant | Type | Value |
Is alpha field | Longint | 0 |
Is BLOB | Longint | 30 |
Is Boolean | Longint | 6 |
Is date | Longint | 4 |
Is float | Longint | 35 |
Is integer | Longint | 8 |
Is integer 64 bits | Longint | 25 |
Is longint | Longint | 9 |
Is object | Longint | 38 |
Is picture | Longint | 3 |
Is real | Longint | 1 |
Is subtable | Longint | 7 |
Is text | Longint | 2 |
Is time | Longint | 11 |
This example sets the variables vType, vLength, vIndex, vUnique and vInvisible to the properties for the third field of the first table:
GET FIELD PROPERTIES(1;3;vType;vLength;vIndex;vUnique;vInvisible)
This example sets the variables vType, vLength, vIndex, vUnique and vInvisible to the properties for the field named [Table3]Field2:
GET FIELD PROPERTIES(->[Table3]Field2;vType;vLength;vIndex;vUnique;vInvisible)
Product: 4D
Theme: Structure Access
Number:
258
Modified: 4D v11 SQL
Modified: 4D v15
4D Language Reference ( 4D v20 R7)