Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with data type converting

Status
Not open for further replies.

qwertz

Programmer
Jun 6, 2002
2
EU
Hi
how can i convert a integer variable into a string avriable.

Greetings
make
 
Code:
define variable i as integer initial 15.
define variable c as character.

c = string(i).
display i c.
 
You can also format it with the STRING() command.

mystring = STRING(i, "99999").

Make sure your format is big enough to handle your desired output.

Tim Ryan
PROGRESS Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top