User Tools

Site Tools



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

Link to this comparison view

is_type [2018/04/02 18: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
 +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