Text Entry Default Load Limit 60000

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Locked
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Text Entry Default Load Limit 60000

Post by HPW »

When I have a multiline text entry with no limit set and when I do:

Code: Select all

FileRead "....\MyBigTestFile.txt" "All" "[TextEntry1]"
to load some bigger content into it, I get only exactly 60000 chars loaded.

I can paste more text into it via clipboard with no problem.

Workaround: I set a much bigger limit of 2000000 and my files gets loaded without problem.

PS: This is not documented in the help-file.
Hans-Peter
Neosoft Support
NeoSoft Team
Posts: 5628
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA
Contact:

Post by Neosoft Support »

NeoBook's Text Entry Field is derived from the Windows Edit control. The limits of the Edit control vary depending on the version of Windows you're using. According to Microsoft:

Windows 95 and 98 have a maximum limit of 64 KB.

Windows NT and higher support a limit up to 4GB depending on the amount of available RAM.
NeoSoft Support
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Post by HPW »

This was on WIN XP.
And I did not check the 'Limit input to'.
So it should accept 4 GB, but I could only load 60000 chars.

When I check the checkbox and define a number like 2 MB I could load my 150 KB file with no problem.

So I did not change anything in the OS, but a setting in neobook to get it to work.
Hans-Peter
Locked