|
| [WD22] - Array..Class not working |
| Iniciado por guest, 19,oct. 2017 10:02 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 19,octubre 2017 - 10:02 |
HI,
does anyone know how to get type of class used in an array?
I have an array like this: mylist is array of oPrdMain myList..class --> error according to PCSoft Help myList..Class should return me oPrdMain.
https://doc.pcsoft.fr/en-US/?2514004&name=Class#sample_code
however using the class property on the array does throw an error.
when i am adding an item to the array like this ..Class works for an item in the array cdr is oPrdMain mylist is array of oPrdMain ArrayAdd(mylist,cdr) myList[1]..Class --> oPrdMain
any idea on how to check what classes are in the array BEFORE the array gets filled?
Thanks Sascha |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 13 mensajes |
|
| Publicado el 19,octubre 2017 - 16:01 |
Hi
This may help
Trace({"mylist[1]"}..Class)
FOR EACH obj OF mylist Trace(obj..Class) END
Regards MatMensaje modificado, 19,octubre 2017 - 16:01 |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 13 mensajes |
|
| Publicado el 19,octubre 2017 - 16:08 |
Or
od is dynamic
od = mylist[1]
Trace(od..Class) |
| |
| |
| | | |
|
| | |
| |
| Publicado el 01,noviembre 2017 - 13:30 |
Use this:
ItemDef is Definition = ArrayInfo(Array, tiElementDefinition) IF ItemDef..Name = "oPrdMain" ... END |
| |
| |
| | | |
|
| | |
| |
| Publicado el 01,noviembre 2017 - 20:09 |
HI,
works in windev and webdev. unfortunately it´s not available on android 
thx sascha |
| |
| |
| | | |
|
| | | | |
| | |
|