QU:Creating database with .CDX production index

Hi To All whom might read this.

I am working with Delphi 3.02 standard and BDE4.51.
I try to create a DBF file with production .CDX file and i don't get it done
DBF and .MDX i have managed.  Can anyone help me PLEASE!

Example of my programming ( Sorry just starting)

            {Give Tempfile special name}
            Form1.temp.tablename := (uname+'.DBF');
            {Create fielddefs}
            Form1.temp.FieldDefs.clear;
            form1.temp.FieldDefs.Add('code_artnr',FtSTRING,9,False);
            Form1.temp.FieldDefs.Add('artnaam',FTstring,30,False);
            Form1.temp.FieldDefs.Add('grpcode',Ftstring,3,False);
            Form1.temp.FieldDefs.Add('grpnaam',FTstring,30,False);
            {Create Indexdefs}
            form1.temp.IndexDefs.Clear;
            form1.temp.IndexDefs.add('artno','code_artnr',[] );
            {Also set type of database-driver}
            form1.temp.TableType := ttdbase;
            form1.temp.TableLevel := 25;
            {Create temp datafile}
            form1.temp.CreateTable;
Now here is the trick,
Without setting the tablelevel everything is going allright but with setting
it i
keep getting the message 'Invalid parameter'

Thank you all in advance

Quote
>jw.vries...@wxs.nl<

For mailing please remove nospam from my adres.