Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus
Message
From
15/05/2006 05:00:04
 
 
To
15/05/2006 04:44:26
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:
01121845
Views:
15
hi,
thank you, not Too many endif's?
IF NOT EOF("main2")
    gcDelimName = ALIAS( ) + '.xls'
    gcPath = [w:\Quality Test 01\mtest\]
    gcDelimName =  gcPath +   DTOS(file_date) +  ".XLS"
   
    lcFile=gcDelimName

    if adir(dummy,lcFile)>0
        MESSAGEBOX(" file exists")
        THISFORM.TEXT1.SetFocus()
       * RETURN
    else
        COPY  TO (gcDelimName) XL5
    ENDIF
 endif
.
.
.
.
.....etc
thanks

>Too many endif's?
>
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform