>Have you gone to the default folder (set by Set Defau To...) containing _dbfconvert and checked to see if there is a _dbfconvert.cdx? I'm guessing that what is going on is when you run from the command window you are sitting in your development area and it HAS the .cdx, but something has either deleted or renamed it in the production area.
>
Would he remember ?
>
>>Hi,
>>I am more 10 years with foxpro.. and its surpise me sometimes.. now .. I can"t find answer on very simple question...
>>
>>I have a code which work always before and don't work now :) I have an error there "Structural .CDX file is not found"
>>When I try to open this DBF from Command window - all perfect.. when I copy this code from debugger.. paste to command window - all perfect!!!!!!!!! but... during TRY/ENDTRY - I'v got an error for same code... but it does not depends from TRY/ENDTRY.. when I remove it.. same code produce error.. and same code does not produce error if I use command window in IDE...
>>
>>Some SET settings? or... I feel stupid :(
>>
>>
>>
>>LPARAMETERS tcFilename
>>
>>lcReturnAlias = "__dbfconvert"
>>
>>IF USED(lcReturnAlias)
>> USE IN (lcReturnAlias)
>>ENDIF
>>
>>TRY
>> USE (tcFilename) IN 0 SHARED ALIAS &lcReturnAlias
>>CATCH TO loError
>> =MESSAGEBOX(loError.Message,16,BZT_MSG_BZT,5000)
>>ENDTRY
>>
>>Return(SPACE(0))
>>
Gregory