#23371 - 2002-06-18 06:00 PM
Re: Problems with USE command ...
|
Bxn
Getting the hang of it
Registered: 2002-06-05
Posts: 63
Loc: Alpha Centauri
|
Ooops ... You've got the point, You Falcon Eyes ! You made me return to the doc and I've had a clue ! I think I have completely misunderstood the use of Dir()
I initially thought that the value of this variable sent to Dir() would lead to :
$Dummy <> "" (and no error) if $Proc2Execute was not empty and this FileName was found in folder(Ok) $Dummy = "" (and no error) if $Proc2Execute was not empty but not found in the folder (Ok)
I stupidly thought that an empty value would lead to an @error = 1 !
I have to say I had focused on the example which indicates dir() to retrieve subsequent entries instead of dir("") ...
So in my script, I realize the result of Dir($Proc2Execute") with $Proc2Execute = "" returns the next file of the previously opened enumeration handle 'f course, which is not what I wanted to do ...
The final question I ask myself :
Why did I forgot the existence of the Exist() Func. ?
I'll correct this and try again, thanx once more !
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 483 anonymous users online.
|
|
|