[futurebasic] Re: [FB] Re: container question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2001 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Thu, 6 Sep 2001 16:56:31 -0400
>le 2001/09/06 16:57, Ken Shmidheiser à k.shmidheiser@... a écrit :
>
>>  You now have an empty container full of 0.
>Except that '0' can be valid content on the container, what i need is
>something like jay suggested that empties the container rather than setting
>it to an arbitrary value.
>
>the objective is to have reuseable fns. today my project [or yours] may
>accept '0' or " " as an 'empty' value, but tomorrow or the next time, this
>may change.
>
>in my case i need to test if the container is empty before acting, and empty
>at a different moment. testing that it is empty avoids having a global flag
>that reflects that the emptying action has taken place. i will go back to
>handles because they give me that flexibility.
>
>i would suggest that we need two new functions/statements:
>   FBemptyContainer( gContainer)
>    // this empties a container but keeps it around
>   myLong = FBisContainerEmpty( gContainer)
>    // returns _false [Ø] if no content, and could return the size if not
>
>:-j

I don't know zip about containers, but is there a way to check the
size of the container?

tedd

--
http://sperling.com