Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Verifying Tables
Thu, Nov 10 2011 8:54 PMPermanent Link

Colin Wood

VirtualTec P/L

Hi, I'm trying to convert some DBISAM code over to ElevateDB and I'm a bit stuck with trying to emulate a function that was once done using the VerifyTable command and an if statement.  Could someone please explain how I could achieve a similar result with the  VERIFY TABLE <TableName> option that is now the alternative?
Here is the old code...

        with Table1 do
        begin
          try
           if VerifyTable then
             ListBox.Items[I] := ListBoxB.items[I] + ' - OK'
          else
              ListBox.Items[I] := ListBoxB.items[I] + ' ** CORRUPTED **'
          except
            ListBox.Items[I] := ListBoxB.items[I] + ' ** TABLE OPEN BY OTHERS - CAN''T TEST **';
          end;
        end;

Thanks
Colin
Fri, Nov 11 2011 12:55 AMPermanent Link

Colin Wood

VirtualTec P/L

Found the answer in the SQL forum.  Thanks Smile
Image