Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Function Call
Wed, Apr 22 2009 7:41 AMPermanent Link

Dan
What is the proper way to call a UDF and get the result in ELEVATEDB? Not in a script, but
straight from the application. I must use TEDBQuery like this for example:

select MyFunction('parameter') as result
FROM Configuration.DataTypes
WHERE NAME = 'Char'

to be able to get the result or is there another way?

Thanks.
Wed, Apr 22 2009 10:12 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Dan


All I've done in mine is specify the result type. Is this external function delphi or sql?

Roy Lambert [Team Elevate]



Wed, Apr 22 2009 11:30 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Dan,

<< What is the proper way to call a UDF and get the result in ELEVATEDB? Not
in a script, but straight from the application. I must use TEDBQuery like
this for example:

select MyFunction('parameter') as result
FROM Configuration.DataTypes
WHERE NAME = 'Char'

to be able to get the result or is there another way? >>

Perhaps you can tell us more about what you're trying to accomplish.  The
above technique is correct, but it sounds like you want to simply call the
function without using it in a query, etc.  Is that correct ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Apr 23 2009 5:21 AMPermanent Link

Dan
<<Perhaps you can tell us more about what you're trying to accomplish.  The
above technique is correct, but it sounds like you want to simply call the
function without using it in a query, etc.  Is that correct ?>>

Yes, i'm just curious it this is the only way to call a function without using it in a query.

Of cource, as a alternative we can use a procedure with out parameters and TEDBStoredProc,
but is there another way to simply use a function?
Thu, Apr 23 2009 5:06 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Dan,

<< Yes, i'm just curious it this is the only way to call a function without
using it in a query. >>

Yes, from a client application.

<< Of cource, as a alternative we can use a procedure with out parameters
and TEDBStoredProc, but is there another way to simply use a function? >>

No, that's pretty much it (procedure call with out parameter).

--
Tim Young
Elevate Software
www.elevatesoft.com

Image