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
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

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)