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: String concatenation
Topic Summary:
Created On: 19-Apr-2005 13:22
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.
Answer This question was answered by Neal Middlemore, on Tuesday, April 19, 2005 2:43 PM

Answer:
Why is it that shortly after asking the world for help, you spot the really basic errors that are causing the problems in the first place. the start of the for loop should read: for (i=o; i <= skipl; i++) and the if statement should read: if (comtest != ",") { Oh well, an hour away from it helped.
 19-Apr-2005 13:22
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Hi,

I was hoping that some of you fine people would be able to help me.

I have a skip list with a comma separated string list in it (actually they are absolute numbers). I want to extract the strings between the commas one at a time. To do this I set a little loop going which gets the first character, checks to see if it is a comma and if it isn't a comma append it to a buffer. If it is a comma then it returns the object for the absolute number and prints some of it's attributes.

I am getting syntax errors on bskiptstr += comtest line and on the else statement.

skipl is the length of the teststr string and bskipstr is the buffer, comtest is a string.

Any ideas?

Regads
Neal
Report this to a Moderator Report this to a Moderator
 19-Apr-2005 14:42
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Answer Answer
Why is it that shortly after asking the world for help, you spot the really basic errors that are causing the problems in the first place. the start of the for loop should read: for (i=o; i <= skipl; i++) and the if statement should read: if (comtest != ",") { Oh well, an hour away from it helped.
Report this to a Moderator Report this to a Moderator
 19-Apr-2005 18:29
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

"Why is it that shortly after asking the world for help, you spot the really basic errors that are causing the problems in the first place"

Because verbalizing the question is a key to solving the problem.

- Louie

Edited: 19-Apr-2005 at 18:32 by Louie Landale
Report this to a Moderator Report this to a Moderator
 19-Apr-2005 18:29
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002



Edited: 19-Apr-2005 at 18:30 by Louie Landale
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.