Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: OMString
Topic Summary:
Created On: 22-Jul-2004 16:35
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 22-Jul-2004 16:35
User is offline View Users Profile Print this message


Christopher Carson

Posts: 269
Joined: 30-Jun-2004

How can I convert an integer to an OMString or Char?

Thanks

Christopher F Carson
I-Logix Inc.
Report this to a Moderator Report this to a Moderator
 22-Jul-2004 16:36
User is offline View Users Profile Print this message


Scott Niemann

Posts: 109
Joined: 30-Jun-2004

You could use something that is in the framework in om2str.h. I have
used this in a tcp model where I need to convert OMSTring to char in
order to invoke a send(). (BTW I did send that model out)

there is a prototype in that file that looks like this:

char* x2String(const OMString& s);
Report this to a Moderator Report this to a Moderator
 22-Jul-2004 16:36
User is offline View Users Profile Print this message


Scott Niemann

Posts: 109
Joined: 30-Jun-2004

Ooops I got the wrong types, you said int to char... Anyways that email
was
for FYI....
Report this to a Moderator Report this to a Moderator
 22-Jul-2004 16:37
User is offline View Users Profile Print this message


Mark Richardson

Posts: 227
Joined: 30-Jun-2004

Try itoa()

Mark.
Report this to a Moderator Report this to a Moderator
 22-Jul-2004 16:37
User is offline View Users Profile Print this message


Amos Ortal

Posts: 120
Joined: 22-Jul-2004

you can also use OMitoa() (defined in oxf/rawtypes.h), it is better than itoa() because it has the same syntax for all compilers.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.