Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
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.
 30-Mar-2006 13:34
User is offline View Users Profile Print this message


Steve Kovalak

Posts: 1
Joined: 21-Mar-2006

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.
Report this to a Moderator Report this to a Moderator
 31-Mar-2006 00:38
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

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.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

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