IonicWind Software

IWBasic => General Questions => Topic started by: Jerry Muelver on February 19, 2008, 04:39:44 AM

Title: Optimal ISTRING size?
Post by: Jerry Muelver on February 19, 2008, 04:39:44 AM
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.  ::)
Title: Re: Optimal ISTRING size?
Post by: Ionic Wind Support Team on February 19, 2008, 08:32:54 AM
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.