![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Converting an integer based attribute to a string based attribute Topic Summary: Created On: 21-Jul-2005 21:21 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You can use a space and empty string ("") to create a concatenated string with an int int intTemp = 9 string strTemp = intTemp "" or string strTemp = 9 "" If you need a function, try this: | |
![]() |
|
We are modifying an attribute to be string based from its current type of integer. The plan is to read the module and if the integer based attribute has a value, convert it to a string and write it to the new string based attribute. The problem is that I can't find a function that will take an integer and convert it to a string. This would be similar to C's sprintf. |
|
![]() |
|
![]() |
|
You can use a space and empty string ("") to create a concatenated string with an int
int intTemp = 9 string strTemp = intTemp "" or string strTemp = 9 "" If you need a function, try this: ------------------------- Bruce Tuskey Sr. Principle Engineer Tuskey@gmail.com "All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien) Edited: 21-Jul-2005 at 22:10 by Bruce Tuskey |
|
![]() |
|
![]() |
|
yes, concatenate the integer with an empty string. You'll find lots of places you need to do that.
Its possible you'll want to convert an integer zero into an empty string. - Louie |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.