Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus
Message
From
15/05/2006 04:56:50
 
 
To
15/05/2006 02:48:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01121830
Message ID:
01121843
Views:
9
Mohammed,

I'm sorry - I was a bit hasty in my first answer.

You should still look at your if...endif's, but also:

Exactly what do you expect ADIR() to do for you in this context?

Not wishing to be impolite, I hesitate to suggest that you should take another look at the manual, and perhaps choose a function more suited to the task of determining, wheter or not a file is present on disk.

>hi all,
>
>i try to keep the Cursor at text1 if the file found,
>but it complate all the code.
>
>
>if adir(dummy,lcFile)>0
>        MESSAGEBOX(" file exists")
>        THISFORM.TEXT1.SetFocus()
>       * RETURN
>    else
>        COPY  TO (gcDelimName) XL5
>    ENDIF
> endif
>.
>.
>.
>.
>.
>
>
>thanks for help.
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform