May 21, 2024, 04:01:15 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Optimal ISTRING size?

Started by Jerry Muelver, February 19, 2008, 04:39:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jerry Muelver

Does actual ISTRING size matter, somehow? For instance, should I take to make istring length in powers of 2? For instance,, in editor.eba I see the declaration:
def buffer[32766]:ISTRING
I've also seen (can't remember where) something like:
def buffer[32766-257]:ISTRING
That got me thinking there might be some coding trick I should know about.  ::)

Ionic Wind Support Team

The default limit to the amount of text a user can enter in an edit control is 32 KB, which is why the editor.iba sample used that value.

Other than that the size is up to you.  If you're defining the variable in a subroutine you are limited to the stack size, which can be changed in the advanced area of the project dialog.

Paul.
Ionic Wind Support Team