Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why this code doesn't work?
Message
De
01/08/2006 13:02:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01142146
Message ID:
01142151
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform