variable size limit? - Forum

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

variable size limit?

Page 1 of 2Next

@luishp,

Is there some hard limit to the size a variable can be?

I have a routine that processes text from the clipboard and then it's loaded again to the text object that it began.   The clipboard receives all the data (I have a clipboard extender to look into) but when it passes it back to the text object (that uses [clip] which is the variable supporting this object).   The list I'm using is more than 10K lines and again, the clipboard extender tells me that it's all in the clipboard.  But when the variable is populated with

SetVar "[Clip]" "[Clipboard]"

It truncates at the same place every time.    The limitation is NOT with the text object as I can directly paste the list into it with no problems at all.   BUT I think during that SetVar above, is when I'm having this truncation.  Which leaves me to ask the question I opened with.     Is there a hard set limit to the amount of data a variable can work with?

Thanks @luishp

Hello,

Just test it myself.

I can put more than 64000 into text and text-entry object.

So not sure where your problem is.

Regards

Hans-Peter

 

 

 

 

Hello,

No, variable are only limited by memory. (MimeStream's can be very big.)

But the text entry can have a limit:

https://winhelp.visualneo.com/TextEntryFieldTool.html

Either set by code or 64000 chars.

Regards

Hans-Peter

 

luishp and rcohen have reacted to this post.
luishprcohen

Hi @hpw,

I thought it might be the text object, which is why I manually pasted the data into the object.  It accepted everything just fine.  BUT if I update it's variable to make this change, it truncates and always at the same spot.

 

@rcohen

Can you make a demo file with this button to insert data and update the variable? So that you can check in the same place whether the text is cropped or not, or not cropped at all. For example, on my computer.

I'm in the process of this now, thanks @vadim,

But now I have a more strange problem, leaving me thinking I'm just expecting the wrong thing....

SetVar "[TheText]" "[ClipBoard]"

[TheText] is the variable that is assigned to the text object.   So, you'd think that the above command would populate the text object.   That doesn't happen.   I know there is that list in my clipboard because I can see it in my clipboard manager.  Been using this clipboard manager for 15 years (ClipCache) and it has never interfered with Neo.   But the [TheText] variable is not being populated.

I'm baffled.

@rcohen

This command (SetVar "[TheText]" "[ClipBoard]") runs when you tell it to. If you want it to work all the time, put it in a timer, for example for 500ms.

Simply place this command in the Timer object. And set the desired triggering interval. I think half a second is enough for most cases.

@Vadim,

Thanks for that.  I assumed that if you checked the keep variables updated checkbox would work with clipboard also, like the time or date does.

Just got back, will finish the test run soon and get the files here.    Thanks again

 

Ohhhh Kay ;-0

Wrangler and I both tested the following file and each of us had the same issue.    And we both ruled out the clipboard and the text object as the problem, so the only thing we can think of is a cap on the variable ?   Yet both of us have loaded HUGE amounts of data into variables in the past, so this doesn't add up.   Yet, you will see for yourselves that this is a mystery of a problem ;-0

Any feedback is appreciated.

@luishp @hpw @wrangler

Uploaded files:
  • You need to login to have access to uploads.

I copied 3000 lines of text into a variable, and the limit is somewhere around 1300 lines....

rcohen has reacted to this post.
rcohen

or 60,040 characters, which is close to the limit.

rcohen has reacted to this post.
rcohen

The text contained blank lines, which would probably bring the count up to 64000...

The variable contains all the text. 1 image.
If you paste text from the clipboard into a text object via the context menu, it also contains all the text. 2 image.
If we paste through SetVar, the text is cropped. 3 image.
Conclusion: SetVar cannot pass more than a certain number of characters from a variable.
Exit: Copy text from a variable in parts.

Uploaded files:
  • You need to login to have access to uploads.

No need to send text in parts.   I'd much rather have this issue addressed than have to figure out exactly where and how to paste this info.    @hpw is this something that can be addressed?

Thanks @mishem for the verification.

Copy text from a variable in parts.

That doesn't solve the problem.
In fact, all characters are in the text box, but not all are displayed.

 

 

Uploaded files:
  • You need to login to have access to uploads.

@mishem,

I thought the same thing at first, but the cursor doesn't move past the visible endpoint nor is there any scroll room.   So, even if the text IS in the text object, it may as well not be ;-)

I am fairly sure that this will be identified by our dev team.... both are awesome. ;-)  Which is what I meant by "no need to copy in parts" ...

Interestingly, where your text truncates (is cut off) is EXACTLY the same place MINE does ;-0

 

 

Another possible hint.   I saved the long list from the clipboard to a file (this worked fine in it's entirety) and then I tried to read it back into the text objects' variable.

Same problem... it truncates.     And again the text was able to be pasted directly into the object and that landed in it's entirety also.    Again pointing to that variable issue.

 both are awesome. ;-)

No, it's there.

Do you see a gopher? And I don't see it. And he is. :)

That is. if you copy this text into any other variable, it will be copied in its entirety. You can manipulate this text any way you want. But you can't see it in a text object.

This topic has been discussed before, I don't remember what Dave answered (if he did). It has already been discussed on the Russian-language forum. It was a long time ago...

 

luishp, Darbdenral and rcohen have reacted to this post.
luishpDarbdenralrcohen

Hello,

If it is an option to use the multiline text-entry:

https://archive.visualneo.com/viewtopic.php?t=19223&hilit=60000

Regards

Hans-Peter

mishem and danito have reacted to this post.
mishemdanito

Hello,

Just tetest it. The limit with 60000 with the text-entry is still there.

Setting a very big limit solves the problem.

The standard text-object shows all chars without limit.

In this thread Dave wrote a limit of 2GB.

https://archive.visualneo.com/viewtopic.php?p=11219591&hilit=limit#p11219591

Regards

Hans-Peter

Darbdenral and rcohen have reacted to this post.
Darbdenralrcohen

@hpw @rcohen @mishem

Setting a very big limit solves the problem.

Bravo! The solution was so simple! I checked it out, it works great! :)

rcohen has reacted to this post.
rcohen
Page 1 of 2Next