[futurebasic] FB^3 Containers bugs or doc errors (was Re: [FB] Containers & Strings)

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

From: Michael S Kluskens <mkluskens@...>
Date: Sun, 11 Mar 2001 10:07:49 -0500
Staz and anyone using Containers in FB^3 release 3 or 4.

At 11:41 PM -0500 3/5/01, Michael S Kluskens wrote:

n=0 crashes, documentation error or compiler bug


This syntax is invalid, documentation error or compiler limitation.

Funny, the less useful form of "INSTR(n,c$,b$$)" is accepted by the compiler.

The following program does not produce the expected result:

begin globals
dim as container gC1,gC2(10)
end globals

window 1
gC1 = "Right"
gC2(1) = "Wrong"
gC2(1) = gC1
print gC2(1)

until fn button

The work around is to replace "gC2(1) = gC1" by:

gC2(1)="" : gC2(1) += gC1

Basically assignment of a container to an element of a container 
array fails--hopefully the nothing is getting overwritten elsewhere.

Arrays of container are critical to my program, but it looks like 
they haven't been tested in FB^3 release 3 or 4.  And considering the 
other points I guess containers have seen very limited use.


ps. all my tests were conducted with FB^3 release 4 running under MacOS 8.6.

Michael Kluskens <mkluskens@...>