Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Txt Box truncates a long string
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00028875
Message ID:
00028986
Views:
46
>I've done a length check on the memvar and on the value property and they both return 2000. I've looked at the 2000th character and it's there.
>
>In you test, did you create a single line edit box? BTW, I 'm not sure if I mentioned that I'm using VFP 3.0b.

After more testing (in vfp5). There are two limits I have found:

1) Like you mention, a single line edit box gives me exactly 2000 chars no matter how much maxlength I assign.

2) Maxlength becomes the dominant factor when >1 line is used, full length of string appears in edit box if enough space is allocated. The default of 0 gives me 2000 chars, exactly.

Here is code I used, then just factor 10-99 *2, 100-999*3, etc., and sum them up.

for i = 1 to 5000
CNum = CNum+alltrim(str(i))
endfor
thisform.edit1.value=CNum

So I guess maybe you've found some kind of bug, though why mine is 2000 limit and yours 1000, who knows? Maybe version?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform