Checking for Files or Folders is a perfect way to include VBScript. The
FileSystemObject has an array of methods to check and manipulate files and
folders and the several tools on my website include the example code to get
the result back into RBase.
----- Original Message -----
From: "J.M. GRATIAS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 12:12 PM
Subject: Re: Scratching my Head
>
> Jim :
>
>
> >>
> 1. The SYNTAX says that if you use wildcards with
> the CHKFILE function you may get back bad results
> so I don't use that method.
> <<
>
> I have red that in the manual ... but it seems to work OK (I cross my
> fingers ...)
> What I intend to do is check that the directory exist. There migth be a
> more clever way to do it ...
>
>
> >>
> 2. The [EMAIL PROTECTED] I don't know what this is at all. I'll have to
look
> into this one.
> <<
>
> That's what I use alway to display message and get user's answer.
> 2 main reasons :
>
> - windows is more nice, always perfectly centered, can hold severals lines
> (just inbed (CHAR(10)) into the text to force LF)
> - buttom are always displayed with the current windows language, so it
help
> to have a langage independant app.
> For example,
> SET VAR vTEXT = ('4|' + .Vcaption + '|' + .vTEXT)
> SET VAR vTEXT = (UDF('@RMSG.DLL',.vTEXT))
> will display 2 buttoms OUI/NON when the current windows version is FRENCH
> (and YES/NO if ENGLISH)
>
>
> >>
> Be carefull if you do that :
>
> CONNECT mpofile IDENTIFIED BY &vg_user
> IF errvar <> 0 THEN
> PAUSE FOR 2 USING 'ERROR: Could not connect to database' AT CENTER
> ...
> ENDIF
>
> If later you decide to SET STATICDB ON (as I do), you will get error 2495
> ...
>
>
> J.M. GRATIAS, Logimatique, France