[futurebasic] Re: [FB] containers

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2007 : Group Archive : Group : All Groups

From: Ted Spencer <ted@...>
Date: Mon, 19 Feb 2007 16:21:26 -0500
On 19 Feb, 2007, at 4:07 PM, AlStaff@... wrote:
>
> DIM containerSize as LONG
> containerSize = LEN(myContainer$$)
>
> but you won't like that. It's not cute  ;-)

Actually, that's how you and I get to know how long the container  
string is. I wondered how FB kept track of it, akin to the first byte  
in a Pascal string, which seems to be updated automatically when the  
string is fiddled with. Something of the sort must be going on with  
the container.

This is, as a matter of fact, something I don't need to know. But I  
didn't need to know that test$[0] was the length of test$ until M.  
Pastor told me I needed to know that, and it's been very handy on a  
number of occasions since.
--
Ted
--
What the eye does not see, the heart cannot grieve...