User Tools

Site Tools


is_type

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

is_type [2018/04/02 20:16] (current)
wolfgangriedmann created
Line 1: Line 1:
 +====== Variable is type ======
 +
 +In VO, it was not so immediate to check the type of a variable.
 +For objects, you need to use ''IsInstance()'', there are functions like ''ValType()'' and ''UsualType'' other than specialized functions like ''IsString()''.
 +
 +In .NET, things are much easier, fortunately.
 +
 +<code>if uValue is string
 +// do something
 +endif</code>
 +
 +The ''is'' operator works for all objects, and since in .NET every value type is an object, it works for all value types.
  
is_type.txt ยท Last modified: 2018/04/02 20:16 by wolfgangriedmann