Question : foxpro table order

Hello,

I've got 2 tables:
* 1/ adresses:
adresnr Integer
name C(100)
etc
etc
* 2/ delivery_adresses:
adresnr Integer (linked with the one in adresses)

Is it possible to create an index on table2 based on the "NAME" field of table1?

(I know I can just do a query but I need to have it on the table so that I can directly edit the original table and not a cursor)

Thanks in advance

Answer : foxpro table order

found the answer myself...

I created a temporary index with the "indexseek" expression into  it:
   INDEX ON IIF(INDEXSEEK(table2.adresnr,.F.,"table1","adresnr"),IIF(SEEK(table2.adresnr,"table1"),table1.comp_name, ""),"") TO "c:\temp.cdx"

this works great!!
Random Solutions  
 
programming4us programming4us