Thanks for the help.
I must have been working way too late... I don't remember seeing the EVAL command listed anywhere in the documentaion. :)
Thanks.
On Fri, 7 Jan 2005 14:27:52 -0500, William W. Fisher <[EMAIL PROTECTED]> wrote:
On Jan 7, 2005, at 1:05 AM, Chay Wesley at EDS wrote:
I'm trying to do some simple calculations in a TCP type probe file using something like the following:
EXPT m"NAME=.TEMPERATURE_0.+ VALUE=.(#+.#+)."ri else goto @NO_MATCH STOR "TEMP_CELSIUS" "${1}" STOR "TEMP_FAHRENHEIT" "0" NADD "TEMP_FAHRENHEIT" #32+((${TEMP_CELSIUS}*#9)/#5)
TEMP_CELSIUS is populated correctly, but I'm having no luck with TEMP_FAHRENHEIT. I've looked all over the page at http://www.intermapper.com/docs/WebHelp/apb-customprobes/ probecalculations.htm but can't figure out the proper calling convention to assign an arithmetic calculation.
The easiest thing would be to use the EVAL command. The syntax is:
EVAL <expression>
For example, instead of the STOR/NADD sequence above, use:
EVAL $TEMP_FAHRENHEIT := 32 + $TEMP_CELSIUS * 9 / 5
Regards,
Bill Fisher Dartware, LLC
____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]
-- Chay Wesley
____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]
