PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Example
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The is <Class> operator is used to find out whether the object used is an object of the class (or an object of one of its derived classes).
Versions 17 and later
Android This feature is now available for the Android applications.
Java This feature is now available for the Java applications.
Universal Windows 10 App This feature is now available for the Windows Phone applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
New in version 17
Android This feature is now available for the Android applications.
Java This feature is now available for the Java applications.
Universal Windows 10 App This feature is now available for the Windows Phone applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
Android This feature is now available for the Android applications.
Java This feature is now available for the Java applications.
Universal Windows 10 App This feature is now available for the Windows Phone applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This feature is available in Universal Windows 10 App mode.
Apple Watch This feature is available in Apple Watch mode.
New in version 21
Universal Windows 10 App This feature is available in Universal Windows 10 App mode.
Apple Watch This feature is available in Apple Watch mode.
Universal Windows 10 App This feature is available in Universal Windows 10 App mode.
Apple Watch This feature is available in Apple Watch mode.
Syntax
<Result> = <Object> is <Class>
<Result>: Boolean
  • True if the object used is an object of the class (or an object of one of its derived classes),
  • False otherwise.
<Object>: Class object
Name of the object whose test must be run. This object can be a dynamic object or not.
<Class>: Class
Class Name. The object can belong (or not) to this class.
Remarks

Example

Four classes are used in this example:
  • BaseClass1
  • BaseClass2
  • DerivedClase that derives from BaseClass1
  • DoubleDerivedClase that derives from BaseClass1 and from BaseClass2
The following code is used to check whether the object belongs to the different classes.
Result1 is boolean
Object1 is dynamic BaseClass1 object

Object1 = new BaseClass1
Result1 = Object1 is BaseClass1                         // Result1 contains "True"
Result1 = Object1 is BaseClass2                         // Result1 contains "False"
Result1 = Object1 is DerivedClass                 // Result1 contains "False"
Result1 = Object1 is DoubleDerivedClass         // Result1 contains "False"

Object1 = new DerivedClass
Result1 = Object1 is BaseClass1                         // Result1 contains "True"
Result1 = Object1 is BaseClass2                         // Result1 contains "False"
Result1 = Object1 is DerivedClass                 // Result1 contains "True"
Result1 = Object1 is DoubleDerivedClass         // Result1 contains "False"

Object1 = new DoubleDerivedClass
Result1 = Object1 is BaseClass1                         // Result1 contains "True"
Result1 = Object1 is BaseClass2                         // Result1 contains "True"
Result1 = Object1 is DerivedClass                 // Result1 contains "False"
Result1 = Object1 is DoubleDerivedClass         // Result1 contains "True"
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment