4D v14.3Type |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Type
Type
The Type command returns a numeric value that denotes the type of the field or variable you pass as fieldVar. 4D provides the following predefined constants:
Notes:
You can apply Type to fields, interprocess variables, process variables, local variables, and dereferenced pointers referring to these types of objects.You can apply Type to parameters ($1,$2..., ${...}), or to project method or function results ($0). See example for the APPEND DATA TO PASTEBOARD command. See example for DRAG AND DROP PROPERTIES command. The following project method empties some or all of the fields for the current record of the table whose a pointer is passed as parameter. It does this without deleting or changing the current record: ` EMPTY RECORD Project Method ` Empty the whole current record of the table [Things To Do] In certain cases, for example when writing generic code, you may need to find out whether an array is a standard independent array or the “row” of a 2D array. In this case, you can use the following code: ptrmyArr:=->myArr{6} ` Is myArr{6} the row of a 2D array? |
PROPERTIES
Product: 4D
HISTORY
Modified: 4D v11 SQL SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||