![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: display an int value Topic Summary: Created On: 25-Oct-2005 13:50 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
looking for the syntax to display the value in a counter variable that is of type 'int'
display MyCounter "some text here" that statement works by turing the number into a string and concatinating it with the text, but i'd prefer to get the right way to do it.. |
|
![]() |
|
![]() |
|
I made a failed effort and writing a routine to convert an integer to a string; cycling through each digit, taking remainders, dividing by 10, then looking up the character in a 10-cell Char array, yaddy yaddy. Didn't work very fast.
No. Convert an integer to a string by catenating a string: int iInt = 22 string sInt = iInt "" - Louie |
|
![]() |
|
![]() |
|
quote: You are doing it the 'right' way. Maybe you haven't realised that you can use a zero-length string i.e.: display MyCounter "" |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
display an int value
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.