KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Using Value Type instead of Type on form objects
PRODUCT: 4D | VERSION: 17 | PLATFORM: Mac & Win
Published On: March 25, 2019

When trying to find the type of a form object, it is easy to assume that the command Value (fieldVar) can be used to return the type. However, it is easy to forget that these form objects cannot be treated as variables and can result in the error below.

C_LONGINT($valueType)
$valueType:=Type(Form.ent)




Instead, use Value type(expression) to successfully retrieve the form object's type.

C_LONGINT($valueType)
$valueType:=Value type(Form.ent)