>Hi everybody,
>
>In about 15 minutes I can not figure out the problem with this simple line of code:
>
>if directory(m.lcDir + 'Batch_' + alltrim(str(m.liBatch_Number)))
>
>The code bellow never executes. I tried in command window:
>=messagebox(directory("\\Jzanus8\Client_Imports\Jzanus\Data_Entry\Batch_" + alltrim(str(3350))))
>
>and of course it returns .t., since the directory exists. Why this code doesn't work when I run it from the application?
Maybe one of those variables do not have the value you think they have. Does
messagebox( m.lcDir + 'Batch_' + alltrim(str(m.liBatch_Number)) )
return
"\\Jzanus8\Client_Imports\Jzanus\Data_Entry\Batch_3350"? Probably an Addbs() is missing.
Cetin