4D Pack v13.2

AP Get field infos

Home

 
4D Pack v13.2
AP Get field infos

AP Get field infos 


 

AP Get field infos ( numTable ; numField ; relTable ; relFld ; props ; choiceList ) -> Function result 
Parameter Type   Description
numTable  Integer in Table number
numField  Integer in Field number
relTable  Integer in Related table
relFld  Integer in Related field
props  Longint in Field properties
choiceList  String in Choice list
Function result  Integer in Error code

AP Get field infos returns specific information about a field.

Given the table number and field number, the command returns the linked table and the linked field number, respectively.

If there is no relation with the given field, relTable and relFld are set to 0.

The 16 bits of props are meaningful. Each bit can be read via bits operators of 4D language.

Bit number:Is set to 1 if:Ignored if field type is
15IndexedText, Picture, Subtable or Blob
14Indexed uniqueText, Picture or Subtable or Blob or if bit 15 is set to 0
13MandatorySubtable
12Choice listPicture, Subtable or Blob
11ModifiableSubtable
10EnterableSubtable
8Invisible
6N to 1 relationText, Picture, Subtable or Blob
51 to N relationText, Picture, Subtable or Blob
2 and 1Automatic 1 to N relation whose deletion control is:
00 No deletion control
01 No assignment of related records
10 Deletion of related records
11 Deletion of related records not allowed
0Automatic N to 1 relation with automatic assignment Text, Picture, Subtable, Blob, or if bit 5 not set

 
PROPERTIES 

Product: 4D Pack
Theme: 4D_Pack : Utilities
Number: 61974

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Pack 6.0.5