User Tools

Site Tools


is_type
no way to compare when less than two revisions

Differences

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


is_type [2018/04/02 18:16] (current) – created wolfgangriedmann
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 18:16 by wolfgangriedmann