
Quote from rcohen on November 15, 2021, 11:22 am@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
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

Quote from HPW on November 15, 2021, 12:41 pmHello,
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
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

Quote from rcohen on November 15, 2021, 8:34 pmHi @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.
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.

Quote from Vadim on November 15, 2021, 8:39 pm@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.
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.

Quote from rcohen on November 15, 2021, 9:28 pmI'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.
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.

Quote from Vadim on November 15, 2021, 9:34 pm@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.
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.

Quote from rcohen on November 15, 2021, 10:53 pm@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
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

Quote from rcohen on November 16, 2021, 12:16 amOhhhh 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
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.
Uploaded files:
Quote from Wrangler on November 16, 2021, 12:22 amI copied 3000 lines of text into a variable, and the limit is somewhere around 1300 lines....
I copied 3000 lines of text into a variable, and the limit is somewhere around 1300 lines....


Quote from mishem on November 16, 2021, 12:53 amThe 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.
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.

Quote from rcohen on November 16, 2021, 1:03 amNo 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.
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.
Quote from mishem on November 16, 2021, 1:31 amCopy 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.
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:

Quote from rcohen on November 16, 2021, 1:39 am@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
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

Quote from rcohen on November 16, 2021, 3:09 amAnother 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.
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.
Quote from mishem on November 16, 2021, 5:04 amboth 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...
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...

Quote from HPW on November 16, 2021, 8:35 amHello,
If it is an option to use the multiline text-entry:
https://archive.visualneo.com/viewtopic.php?t=19223&hilit=60000
Regards
Hans-Peter
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

Quote from HPW on November 16, 2021, 9:03 amHello,
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
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

Quote from Vadim on November 16, 2021, 1:08 pm@hpw @rcohen @mishem
Setting a very big limit solves the problem.
Bravo! The solution was so simple! I checked it out, it works great! :)
Setting a very big limit solves the problem.
Bravo! The solution was so simple! I checked it out, it works great! :)