I have written a sub that determines information about a region. In the
process of testing the sub, I wrote a sub similar to what is below.  I
idea is that the user selects the region of interest and runs the sub.  

Well, it all worked, except when I went to close the table, I noticed
that I had about 30 QueryXX tables open.  Everything I tried to not
create the query tables did work.  I did determine that creation of the
table is related to having an object in the calling sub.

So, short of closing & re-opening the main table or combining the two
sub, how do I stop the creation of the QueryXX tables?  I thought using
the select command & naming a table(see below) would work, but it
doesn't.  

I have never quite understood why MI designed it so these tables are
created and kept.  This time, even the bottle of honey porter failed to
give me some insight. 


'**********************************************
include "mapbasic.def"
include "menu.def"
include "icons.def"

declare sub main
declare sub findnodes(byval areas as object, opps as string)

sub main
dim o_section as object
cls
select * from selection into zztable
o_section=zztable.obj

call findnodes(o_section,opps)
print opps+" "'+o_section
close table zztable
end sub

sub findnodes(byval areas as object, opps as string)
opps="this is a test"
end sub


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12892

Reply via email to