![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Easy question on print command Topic Summary: Created On: 2-Oct-2006 02:44 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: After finding some old notes I answered my own question. The "" are needed to terminate the string. Argh ![]() | |
![]() |
|
Hi Everyone,
I haven't been a hard core DXL developer for some time so please excuse this stupid question here. I have a module, and it has an attribute called "Status". In the below simple, short program I am simply looping through all the objects in the module, and if I come across an object that has the single enemurated value of "Released" I want to print out the Absolute Number to the DXL window. My question is why do I need the "" at the end of the print statement? I dont remember ever having to do this. Thanks, quote: ------------------------- pete.kowalski(at)motorola.com |
|
![]() |
|
![]() |
|
After finding some old notes I answered my own question.
The "" are needed to terminate the string. Argh ![]() ------------------------- pete.kowalski(at)motorola.com |
|
![]() |
|
![]() |
|
Sorry to nit-pick, but strickly speaking the quotes are not required to "terminate" the string, they are in fact needed to cast the expression to a string before being passed to the print function.
The expression o."Object Text" is of type Attr__. The expression o."Object Text" "" is of type string. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
No issues at all.
Thanks for the additional information. I just rehashing what I saw in a Telelogic manual, and you know the record on how "good" they document. ![]() ------------------------- pete.kowalski(at)motorola.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Easy question on print command
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.