VBScript Getting object types in variables -


how can object type in variable?

for example in vb can declare way:

dim tvnode treenode tvnode = treeview1.nodes(1) tvnode.remove() 

that way can access functions object.

but in vbscript this:

dim tvnode tvnode = treeview.nodes(1) tvnode.remove() // error. incompatible type - tvnode type: (name of node) ??? 

how can node in variable in vbscript then?

use typename string representation of type. there vartype returns vt_enum value of variant type.

see get type of variable in vbscript.


Comments