[futurebasic] Re: String overflow?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1998 : Group Archive : Group : All Groups

From: Mark Goodes <wave@...>
Date: Thu, 7 May 1998 19:04:42 -0400
> The code seems to
>work fine...
>EXCEPT--if I turn on the "Check for string/array overflow" option, I get
>a string length error at the line indicated, where I first try to assign
>a string field.

I had the same problem, and the fix was ugly--had to poke the string length
into the first field of each record every time.  Although I just thought of
something that you might try: change
 HndlArray&..str1$(300) = "This is the first string."'***ERROR here***
to
 HndlArray&..str1$(300);255 = "This is the first string."
You never know.  Of course, it would work better if there was a way of
using the actual string length in place of the 255.

____________
wave (Toronto, Canada)
Much better at "OOPS!" programming than OOP programming.