dbiDoRestructure Help - Maybe requires TeamB (pretty difficult methinks) - documentation is too scarce.

I thought I had it all OK, but I get access violations. I want to
restructure a db. Just a simple test one to start with with only 1 field.

Here's my code:

  Structure : pCRTblDesc;
  FieldArray : array [0..0] of CROpType;
  FieldStructure : array [0..0] of fldDesc;
  test : fldDesc;
begin
  FieldArray[0] := crModify;
  test.iFldNum := 0;
  test.szName := 'Name';
  test.iFldType := 0;
  test.iLen := 20;
  FieldStructure[0] := test;
  Structure.szTblName := 'c:\temp\TEST.db';
  Structure.bPack := True;
  Structure.iFldCount := Table1.FieldCount;
  Structure.pecrFldOp := @FieldArray;
  Structure.pfldDesc := @FieldStructure;
  DBIDoRestructure(Table1.DBHandle, 1, Structure, 'c:\temp\test2',
  'c:\temp\testkey', 'c:\temp\testprob', True);

The current DB only has 1 field named 'Name'. My aim is to convert it from
being 12 characters to 20.

Any ideas?

--
Edward Dekkers (Director)
Triple D Computer Services Pty. Ltd.
Western Australia
P: (08) 9397-1040
F: (08) 9397-0548