![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: replace spaces with comma in a string Topic Summary: Created On: 16-Nov-2005 21:02 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: The attached should do the job for you. This function allows you to specify the character to be replaced and the character to replace it with. | |
![]() |
|
I need DXL code that replace any space with comma in a string.
Example: 12345 34567 54321 67894 change to 12345,34567,54321,67894 Thanks so much! |
|
![]() |
|
![]() |
|
The attached should do the job for you.
This function allows you to specify the character to be replaced and the character to replace it with. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
hi everyone, I wonder if you would have any brilliant idea on my problem. |
|
![]() |
|
![]() |
|
Hi,
what is ^l? try '\n'. You have to use ' ' instead of " ", because " " indicates a string, while ' ' indicates a char. print subStr("abc#def#ghi", '#', '\n') regards michael Edited: 27-Jul-2006 at 11:15 by Michael Werner |
|
![]() |
|
![]() |
|
quote: are you using DOORS 8.0? if so, i had issues with imports going off the track. my case was the encoding was off...i have to import stuff with it set to Latin I...dont ask me why latin...run this dxl to tell you what encoding your machine is...guess it only applies if you are in DOORS 8.0 actually...i think they fixed it in 8.1. print currentANSIcodepage /* The original error you were getting when the computer freezes because of the quotes in the csv file is caused by the encoding that is set on your machine when the document is saved. This same encoding must be set in the advanced section of the spreadsheet import. To find out what encoding is on your machine you can use the following DXL: print currentANSIcodepage. */ Edited: 26-Jul-2006 at 22:37 by Baher Mohamed |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
replace spaces with comma in a string
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.