thanks, that problem is solved by your way. :)
>try set safety off
>>I have a grid containing a databaseA and have the following in the init method of a Form. I want to index on its field 'code'.
>>
>>select databaseA
>>=cursorsetprop("buffering",3,"databaseA")
>>index on code to dbAindex
>>
>>It runs fine in my Visual FoxPro. But when I built it to an exe file and run it. The following message appears
>>--- c:\xxx\dbAindex.idx is already exist, overwrite it?
>>If I clicked YES, a blank database will appear in that grid
>>If I clicked NO, the grid will show me the databaseA normally.
>>
>>How can I solve this problem?
Power Wong
Every problem will have a solution, the only problem is that can you find it out.