How to pass a com object string property greater than 32k?

Started by Ken Sproul, September 21, 2023, 06:52:21 PM

Previous topic - Next topic

Ken Sproul

I'm using a com object with a string property that I need to pass a value greater than 32k back and forth.
I think there's a trick to this if memory serves, but I couldn't find it.

Ken Sproul
DPI Information Service, Inc.
Pivotal Systems LLC

Stéphane Devouard

Hi Ken


You have the pvxextdata[$] extended properties to GET more than 32K of data
https://manual.pvxplus.com/PXPLUS/Automation%20in%20PxPlus/PxPlus%20COM%20Interface%20Extensions/Overview.htm


Not sure about SETting more than 32K, though...


Hope this helps
Stéphane Devouard
Portfolio | Work

Ken Sproul

Stéphane,


That's exactly what I needed!
It seems that setting more than 32k is not an issue for some reason.


Thank you!


In case it helps someone, below is the code I used:
get_html_value:
html_value$=html'value$
if len(html_value$)=32000 then while html'pvxextdata; html_value$+=html'pvxextdata$; wend
return

Ken Sproul
DPI Information Service, Inc.
Pivotal Systems LLC