dbTalk Databases Forums  

HOW I CAN TO DO THIS ?

comp.databases.gupta comp.databases.gupta


Discuss HOW I CAN TO DO THIS ? in the comp.databases.gupta forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jorldomi
 
Posts: n/a

Default HOW I CAN TO DO THIS ? - 03-16-2005 , 05:52 AM






I want to know how i can execute a function stored as a string variable
in a CTD 1.5 application.
Example :
set sFunction="b+c"
where b and c are values retrieved previously and stored as numeric
variables.
How i can execute the string variable sFunction as a function and
retrieve his result as a valid numeric expresion ? .-
I tried to do this using constants but in this scenario is not possible
to use it .-
TIA .-
best regards .-


Reply With Quote
  #2  
Old   
Hans-Dieter Dreier
 
Posts: n/a

Default Re: HOW I CAN TO DO THIS ? - 03-17-2005 , 01:28 AM






I recall that there is a function called SalCompileAndEvaluate (or similar).
You pass in a string containing an expression.
It has a lot of return parameters, one for each possible data type.
You could look it up in the online help.

--


Regards,

Hans-Dieter Dreier

"jorldomi" <jorldomi (AT) gmail (DOT) com> schrieb im Newsbeitrag
news:1110973955.674446.175410 (AT) f14g2000cwb (DOT) googlegroups.com...
Quote:
I want to know how i can execute a function stored as a string variable
in a CTD 1.5 application.
Example :
set sFunction="b+c"
where b and c are values retrieved previously and stored as numeric
variables.
How i can execute the string variable sFunction as a function and
retrieve his result as a valid numeric expresion ? .-
I tried to do this using constants but in this scenario is not possible
to use it .-
TIA .-
best regards .-




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.