Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Remote Params - returns an exception -should it?
Tue, Sep 26 2006 8:35 PMPermanent Link

"Ian Branch"
Hi Guys,

   I have implemented the following..


       IF RemoteParamByName('Module') = NIL THEN
         RemoteParams.CreateParam(ftInteger, 'Module');

   My problem is that the "RemoteParamByName('Module')" returns a DBException
with a "DBSession:Parameter 'Module' not found'.

   I know this that is why I am testing for it and if not found, creating it.
'Module' is used elsewhere in the app as well.

   I don't see why I am getting an exception rather than simply returning Nil.

   Thoughts??

Regards,

Ian
--
Wed, Sep 27 2006 4:34 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ian,

<< My problem is that the "RemoteParamByName('Module')" returns a
DBException with a "DBSession:Parameter 'Module' not found'. >>

What you want is the RemoteParams.FindParam method:

http://www.elevatesoft.com/dbisam4d5_tdbisamparams_findparam.htm

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Sep 27 2006 4:43 PMPermanent Link

"Ian Branch"
Tim Young [Elevate Software] wrote:

> Ian,
>
> << My problem is that the "RemoteParamByName('Module')" returns a DBException
> with a "DBSession:Parameter 'Module' not found'. >>
>
> What you want is the RemoteParams.FindParam method:
>
> http://www.elevatesoft.com/dbisam4d5_tdbisamparams_findparam.htm

Hi Tim,

   OK, I can work with that but I guess the basis for my original question still
stands.  The Help documentation says ..." If there are no parameters with that
name, the RemoteParamByName method will return nil."  Is that not correct?

   Quick follow up question - are the parameters persistant for the life of the
Session?

Regards & thanks again,

Ian

--
Thu, Sep 28 2006 2:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ian,

<< OK, I can work with that but I guess the basis for my original question
still stands.  The Help documentation says ..." If there are no parameters
with that name, the RemoteParamByName method will return nil."  Is that not
correct? >>

No, it is not correct.  I will make sure that it is corrected.

<< Quick follow up question - are the parameters persistant for the life of
the Session? >>

Yes.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image