Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why this code doesn't work?
Message
From
01/08/2006 13:02:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01142146
Message ID:
01142151
Views:
11
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform