Operator "is Class"

Startbeitrag von Arekusei Timakobu am 22.09.2016 12:26

Class1 is Class
Class2 is Class
inherits from Class1
Class3 is Class
inherits from Class2

Obj is Class1 dynamic = new Class3()
ObjIsClass2 is boolean = Obj is Class2 // False!!

Why? Is it possible to fix this? Any workarounds?



in wlanguage, "is class" is a DECLARATION, not an operator/test.

So no, I do not think this is possible

Best regards

von Fabrice Harari - am 22.09.2016 12:41

You can use GetDefinition en GetTypeDefinition to solve this


Good luck !

von Danny Lauwers - am 22.09.2016 16:15
Hi Arekusei,

As per documentation (http://doc.windev.com/en-US/?6010013) your example is good. It looks like WinDev will not return True if this is a double inheritance, but only a direct inheritance (as from one can suppose from the doc and its example).

You may test and prove your case very simply and send it to the free technical support. They can confirm or not if this is n error or a “suggestion for improvements.”

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 22.09.2016 17:03
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.