LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Text Box Limit

What is the limit to the amount of text one can have in a text box?
One way to limit the text would be to keep track of the amount of text (or
lines) written so far and then delete the earliest text if it exceeds the
size.

Is there another way to find that the text box limit is reached and then
delete some text?
0 Kudos
Message 1 of 3
(2,853 Views)
Correction:
I am using LabWindows 7.0. I have seen some posts in the past that the limit
has been removed since Ver 5.5. Is that correct? In any case, is there a
guidance on setting such a limit?

"Chandu Patil" wrote in message
news:40ae612d@newsgroups....
> What is the limit to the amount of text one can have in a text box?
> One way to limit the text would be to keep track of the amount of text (or
> lines) written so far and then delete the earliest text if it exceeds the
> size.
>
> Is there another way to find that the text box limit is reached and then
> delete some text?
>
>
>
0 Kudos
Message 2 of 3
(2,853 Views)
Chandu,

Text box used to have a limit on the number of lines that it contained. CVI 6 and up include a text box with no set limit for the number of lines that it can contain. Basically the limit will depend on the memory available.

The best practice is to always check the return value of the function to set the text. You should get an out of memory error once you have reached the limit of what the text box can hold.

If you want to set a limit, it's up to your program to check the number of lines added so far and determining if there is space for more characters.

I hope this helps, let me know if you have any further questions on this.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 3
(2,853 Views)