I'm trying to create a table borrowing all the structure, indexes, and validity checks from an existing table. If I only use the LIKE command it works, but the STRUCT and INDEXSTRUCT generate errors (used alone or together).
The code is:
method pushButton(var eventInfo Event)
var
NewTbl Table
OldTbl Table
endVar
OldTbl.attach("oldfile.db"
NewTbl = Create "newfile.db"
Like OldTbl
Struct OldTbl
indexStruct OldTbl
EndCreate
errorshow()
endMethod
Including the Struct line generates the error "FieldName not a field in oldfile"
Including the indexStruct generates the error "Infoleader not a field in oldfile"
If I only include the Like line, it doesn't generate errors.
What am I doing wrong? (I'm using Paradox 9)
Lynn
The code is:
method pushButton(var eventInfo Event)
var
NewTbl Table
OldTbl Table
endVar
OldTbl.attach("oldfile.db"
NewTbl = Create "newfile.db"
Like OldTbl
Struct OldTbl
indexStruct OldTbl
EndCreate
errorshow()
endMethod
Including the Struct line generates the error "FieldName not a field in oldfile"
Including the indexStruct generates the error "Infoleader not a field in oldfile"
If I only include the Like line, it doesn't generate errors.
What am I doing wrong? (I'm using Paradox 9)
Lynn