max string length

17 Posts
3 Users
0 Likes
58 Views
f.martin
(@f-martinarcinfo-com)
Posts: 148
Member Admin
 

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.

 
Posted : 06/12/2017 7:15 pm
(@j.becker@pcvue.de)
Posts: 0
New Member Guest
 

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");
 
Posted : 18/12/2017 2:36 pm