Debbie
2004-11-03 15:25:46 UTC
I have a reindex program that uses the ADIR() function to gather the names
of all my tables and then reindex them. Before reindexing each table, I
pass the table name to a method which tells me whether or not it is one that
can be packed at this time (it returns .T. if the table can be packed, and
.F. if it can't). My problem is that, regardless of what the method
returns, all tables get packed! I added a messagebox to tell me if I was
falling into the correct part of my code, and I was.
llpack = THISFORMSET.PackTable(lctable)
USE (lctable) EXCL ALIAS lctable
IF llpack
PACK
REINDEX
ELSE
=MESSAGEBOX("Not packing.",0) && Test
REINDEX
ENDIF
USE IN lctable
Maybe I'm missing something silly, but I'd appreciate it if anyone out there
had some suggestions! Thanks in advance.
Debbie
of all my tables and then reindex them. Before reindexing each table, I
pass the table name to a method which tells me whether or not it is one that
can be packed at this time (it returns .T. if the table can be packed, and
.F. if it can't). My problem is that, regardless of what the method
returns, all tables get packed! I added a messagebox to tell me if I was
falling into the correct part of my code, and I was.
llpack = THISFORMSET.PackTable(lctable)
USE (lctable) EXCL ALIAS lctable
IF llpack
PACK
REINDEX
ELSE
=MESSAGEBOX("Not packing.",0) && Test
REINDEX
ENDIF
USE IN lctable
Maybe I'm missing something silly, but I'd appreciate it if anyone out there
had some suggestions! Thanks in advance.
Debbie