Previous | Next | DMIS
Topic: How to convert a number variable into a text one?
Conf: DMIS, Msg: 5289
From: Viktor Sokurov (viktor.sokurov@fmindustries.com)
Date: 7/6/2004 07:02 PM

Hello Friends,

I need to create a string by joining a standard message with the number obtained from the measurement.
CONCAT would work if I only knew how to convert number variable into a string one.
Any ideas?

Example of what failed:

DECL/LOCAL,DOUBLE,dblNum
DECL/LOCAL,CHAR,512,cNum,cSay

!! Here is what I tried and it failed
!! Convert number into string
cNum=ASSIGN/dblNum
!! Join String and Number
cNum=ASSIGN/CONCAT (cNum, dblNum)

!! Here what I try to output
TEXT/OPER,'The number is: ',dblNum
!! or
TEXT/OPER,cNum

thank you

Viktor Sokurov
FM Industries, Inc.