Send Event - works only sometimes
I'm running FM 8.5 adv on WinXP Pro
I have two scripts that use the following steps;
The first one is ---
set variable [$file2open; value:Startup::FTPLocalLossNotices &"/" &
$file2get]
Send Event ["aevt"; "odoc" ; $file2open]
where Startup::FTPLocalLossNotices is the path to the existing file
--- and it works every time. The second one is ---
set variable [$file2open; value:Startup::FTPLocalForms &"/"&
Forms::FormFileName]
Send Event ["aevt"; "odoc" ; $file2open]
where Startup::FTPLocalForms also contains a valid path and
Forms::FormFileName is the name of the file. This script returns the error
"The file <filespec in the $file2open variable here> could not be found and
is required to complete this operation."
I have triple checked the filespec against the location of the file which
does in fact reside in the specified directory.
Does anyone else use the Send Event script step successfully? Is there
something I'm not aware of here?
Thanks in advance,
Steve
Re: Send Event - works only sometimes
"GSP [at] DavClaServ" <info [at] davclaserv.com> schreef in bericht
news:7f7c3$469bac7a$d1a8fa82$32175 [at] EDELTACOM.COM...
> I'm running FM 8.5 adv on WinXP Pro
>
> I have two scripts that use the following steps;
> The first one is ---
>
> set variable [$file2open; value:Startup::FTPLocalLossNotices &"/" &
> $file2get]
> Send Event ["aevt"; "odoc" ; $file2open]
> where Startup::FTPLocalLossNotices is the path to the existing file
>
> --- and it works every time. The second one is ---
>
> set variable [$file2open; value:Startup::FTPLocalForms &"/"&
> Forms::FormFileName]
I think here's the error. You refer to two TO's. Namely Startup:: and
Forms::. Either you are referring to them through a relationship and one (or
both) TO's is not valid. OR perhaps you are straight referring to a table
while not being inside that table at the time. In the first script you refer
to a variable that has been set previously.
I would start with checking that both Startup::FTPLocalForms and
Forms::FormFileName return the correct values. They might contain the
correct value, but do they return them to your script?
Further you might considder using the Open URL script step. which I mostly
use and which I find a bit more flexible because you can use straight fields
instead of variable referrals.
Keep well, Ursus