variable size limit? - Page 2 - Forum

Forum Navigation
You need to log in to create posts and topics.

variable size limit?

PreviousPage 2 of 2

2GB is a DELPHI limit.

rcohen has reacted to this post.
rcohen

Thank you @hpw.

Great to know that there is a getaround!

 

So I have an html file that has over 80,000 characters.  One of the lines in the file has over 25,000 characters, it's not uncommon to see huge line lengths in computed html.

What would be the best way to put a large file or string in a variable from a plugin?

I've tried to copy the entire string using SetVar  or saving to a file then using FileToVar with no luck.  VisualNeoWin either complains there is not enough actual parameters "No quote" ..  That's because it truncated the string..  or there's only one character transferred to the variable..

thanks!

 

Have you tried to instead save out to a zip file?   I will also guess that you do not need to NAME the file *.zip that you can choose whatever extension you wish if you need to stealth it, but ...  this is just a guess.   But I'll guess the zip file would work.
Darbdenral has reacted to this post.
Darbdenral
Quote from rcohen on October 25, 2022, 12:10 am
Have you tried to instead save out to a zip file?   I will also guess that you do not need to NAME the file *.zip that you can choose whatever extension you wish if you need to stealth it, but ...  this is just a guess.   But I'll guess the zip file would work.

Hi @rcohen,

Yes, I could do that too but it limits usability..  I want to provide the source to the user by a string variable so they could do as they wish in their project. Parsing, etc..  But It seems like it's not possible with VisualNeoWin in this situation.  For now I have created a form with a memo from the plugin to display it, which temporarily works but not as intended.  I can also save the source to a temp file and just hand off the path/filename in a variable too, and problem ;).  But my original intention was to create a variable with the source contained.

Thanks!

rcohen has reacted to this post.
rcohen

https://archive.visualneo.com/viewtopic.php?p=11219584&hilit=variable+size+limit#p11219584

Darbdenral and rcohen have reacted to this post.
Darbdenralrcohen
Quote from DaviddeArgentina on October 25, 2022, 2:42 am

https://archive.visualneo.com/viewtopic.php?p=11219584&hilit=variable+size+limit#p11219584

@daviddeargentina,

Ok, so confirmed .. The following code worked successfully reading and writing 126,000 characters ..  That means the variable contains every character but the VisualneoWin form designer does not.

FileToVar "[TempDir]web.dat" "[TXT]"
FileWrite "[TempDir]web.txt" "All" "![TXT]"

But then what can I display the variable above [TXT] with?  I know I can put it in a web browser and view as text, anything else doesn't work..

thanks!

PreviousPage 2 of 2