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.
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)