PxPlus User Forum

Twitter Twitter Twitter

Author Topic: How to pass a com object string property greater than 32k?  (Read 574 times)

Ken Sproul

  • Gold Member
  • ****
  • Posts: 60
    • View Profile
How to pass a com object string property greater than 32k?
« on: September 21, 2023, 06:52:21 PM »
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

  • Diamond Member
  • *****
  • Posts: 119
  • PxPlus guru with skills in PHP, JS, C#, Java
    • View Profile
    • Stéphane's Web Resume
Re: How to pass a com object string property greater than 32k?
« Reply #1 on: September 21, 2023, 11:20:49 PM »
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

  • Gold Member
  • ****
  • Posts: 60
    • View Profile
Re: How to pass a com object string property greater than 32k?
« Reply #2 on: September 22, 2023, 01:24:49 AM »
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