I'm starting to look through the ZONE stuff you offer, since I was going to overhaul my large array of 60x60x200 integers (which is 60x60 groups of possibly 200 zones max), and just use 3600 zone groups. But I found something curious and I just want to know if it is intentional or not.
Is a zone only allowed to belong to one group? Or should a zone belong to multiple groups? With the following code it seems to overwrite which group the zone is in, so it is in the last one set.
local z as integer
z = find free zone(1, 200)
set zone z, 0.0, 0.0, 0.0, 100.0, 100.0, 100.0
place zone in group z, 10
`place zone in group z, 11
z = find free zone(1, 200)
set zone z, 10.0, 10.0, 10.0, 90.0, 90.0, 90.0
place zone in group z, 10
place zone in group z, 5
`z = find free zone(1, 200)
`set zone z, 20.0, 20.0, 20.0, 80.0, 80.0, 80.0
`place zone in group z, 10
print str$(z)
print "zone group count10 = " + str$(zone group count(10))
print "zone group count5 = " + str$(zone group count(5))
`print "zone group count5 = " + str$(zone group count(20))
zon = first zone in group(10)
if zon > 0
while zon > 0
print "Group10=" + str$(zon)
zon = next zone in group(10)
endwhile
endif
wait key
end
...causes the following output:
2
zone group count10 = 1
zone group count5 = 1
Group10=1
I was hoping zone 2 could be in group 10 and group 5. Is the above intentional? Thanks for any info.
I'm not a real programmer but I play one with DBPro!