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: dynamic arrays
Topic Summary:
Created On: 25-Jul-2005 09:08
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.
 25-Jul-2005 09:08
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

Hello,

Is there any possibilty to create dynamic arrays?

normally you create an array with:

Array test = create(x,y)

but i need a way to create something like
Array test = create(y) (and y=1)
so an one-dimensional array, which has no end

Thanks in advance.

Ben
Report this to a Moderator Report this to a Moderator
 25-Jul-2005 11:22
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Arrays ARE dynamic. They automatically resize according to what you add to them.

// create an array
Array test = create(1, 1)

// then you can legally do this - the array is resized to (26, 1)
put(test, string "hello", 25, 1)

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 25-Jul-2005 11:28
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

oh that's working? great! Thanks
Report this to a Moderator Report this to a Moderator
 25-Jul-2005 13:48
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

oops

-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 25-Jul-2005 at 13:50 by Tony Goodman
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.