After a short discussion with Nicolas and Nicolas, I created SPR 63909 to modifiy the GETCOLLECTION behvior. As the return string can easily generates a string overflow, it should either return a buffer or fill de XMLPATH memory.
Hi,
a fix was done for that issue, !!Warning!! syntax changed:
---
Answer : Now you can pass the XmlPath namespace as an argument, and the instruction no longer returns a string
Window("GETCOLLECTION", Namespace as String);
'Return value : 0 if succeeded, otherwise 1
'Example :
DIM CNSPCE as STR;
CNSPCE = "NikoLeBo";
Window("GETCOLLECTION", CNSPCE);
'amount of mimics
XMLPATH("COUNT", CNSPCE,"Mimics/Mimic");
- 1
- 2


