Notifications
Clear all

[Closed] Struct definitions

Anyone know how I find out / compare if a struct instance is of class X?

p = new Person "Dave" #male
 classof p == Dave

This don’t work…

2 Replies

OK – stratch that – it works with the Person example.
I’m storing structs inside tags of a dotNet treeview and comparing tag.value ain’t working right…

Ah, OK for a value in a tag already applied using

node.tag = dotNetMXSValue obj

you need

node.tag.value