hi,
thank you both again,it works
time at jordan 10.30 befor mid night.
i know somthing else at your countreis,
have a nice time.
>
>i try as under ,i must got message but it make copy
>>>>lcFile=('gcDelimName')
>>if adir(dummy,lcFile)>0
>> MESSAGEBOX(" file exists')
>>else
>> COPY fields no,date TO (gcDelimName) XL5
>>endif
>>
>
>Why are you using parenthesis and quotes around the variable name? You can either use the original varname directly or assign it to lcFile:
>
>lcFile=gcDelimName
>
>if adir(dummy,lcFile)>0
> MESSAGEBOX(" file exists')
>else
> COPY fields no,date TO (gcDelimName) XL5
>endif
>