Log In    |    Knowledge Base    |    4D Home
Tech Tip: Checking the type of field or variable
PRODUCT: 4D | VERSION: 2004.3 | PLATFORM: Mac & Win
Published On: January 27, 2006

You can check the type of a field or variable using the Type command. This command returns a number that designates the type of field or variable as it is declared. As shown in the example below, the value of vtype is 2 which denotes that variable t1 is declared as Text:

vtype:=Type(t1) ` returns value 2 w/c is a text type

Below is a link to 4th Dimension predefined constants: