You are not logged in.

Perry

Beginner

  • "Perry" is male
  • "Perry" started this thread

Posts: 40

Date of registration: Jan 15th 2011

Location: Sarasota, FL

Occupation: Cabinet Design

Hobbies: Programming

  • Send private message

1

Monday, February 10th 2014, 8:06pm

Redim Preserve

In using Jabaco I've noticed that the Preserve option in the Redim statement will cause an error if the array being redimmed is multidimensional.

Redim Preserve A(30) works
While
Redim Preserve A(30,5) generates an error.

I did a search for the error on the site and I did find issues concerning Redim that have evidently been resolved
But I didn't find this particular issue in using the Preserve keyword
Is this a known limitation or Issue?

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

2

Tuesday, February 11th 2014, 9:12am

Hey there,

did you see this post?

http://www.jabaco.org/board/p3023-can-no…y.html#post3023

I ended up using two synchronized arrays, setting their position symultaneously.

Dani

Perry

Beginner

  • "Perry" is male
  • "Perry" started this thread

Posts: 40

Date of registration: Jan 15th 2011

Location: Sarasota, FL

Occupation: Cabinet Design

Hobbies: Programming

  • Send private message

3

Tuesday, February 11th 2014, 6:04pm

Redim Preserve

I did view the thread that you gave.
I am not sure how that particular discusion applies here though it was informative.The problems could be related of course.
You mentioned though that you wound up syncronizing two arrays, to fit your purposes.
Were they single dimensional arrays that you synced?
That might be a possibilty here, but in the above example A(30,5), it would require 5 single dimensional arrays of 30 items to fit the purpose.
Restating the problem, I havent had a problem with arrays so far, even multidimensional, until I use the PRESERVE Key word in a MULTIDIMENSIONAL Array. The Preserve key word works fine on single dimension arrays, but on those only.

uaktags

Beginner

Posts: 2

Date of registration: Mar 24th 2014

  • Send private message

4

Wednesday, March 26th 2014, 3:49pm

While I still can't confirm if it's a limitation or an error, but looking through all of the jabaco framework, developer only uses SingleDiminsion when it comes to Redim Preserve and never once uses multi or includes comments about the lack there of functionality. This would lead me to believe that this is just a LIMITATION or missight on the syntax conversion.

Rate this thread
WoltLab Burning Board