![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Copy part of a string to a new column Topic Summary: How to copy only part of a string to a new place Created On: 30-Mar-2006 13:34 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
This should be fairly simple, but how can I copy part of the data in a column into a new column using a dxl function?
i.e. moving a-X info in column A to column B (all text fields) A B (a-1) blah a-1 (a-2) blah a-2 Many thanks. |
|
![]() |
|
![]() |
|
Assuming you've already got the strings, you can use str[x:y] to access substrings. So, using your example, if the number is always a single digit, you can use the following:
strB = strA[0:5] to copy over the first five characters. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Copy part of a string to a new column
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.