Previous | Next | DMIS
Topic: How to convert a number variable into a text one?
Conf: DMIS, Msg: 5290
From: Keith Morton (kmorton@lk-cmm.com)
Date: 7/6/2004 10:26 PM

Viktor,

1. Use str() to convert real to string

2. For Text/Oper create a string and substitute the string into the command line.

3. Buy the spec, all high level instrinsic functions are well documented.

yr program is now like this:

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

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

$$!! Here what I try to output
cString=ASSIGN/CONCAT('The number is:',str(dblNum))
TEXT/OPER,cString
$$!! or
TEXT/OPER,cNum