RE: [U2] Dimensioned arrays

2004-11-04 Thread Peter Olson
how about just adding the new elements to the end cause the program will go ka-boom as soon as last.pos exceeds inmat( arr1 ) ? we'll need to insure it doesn't blow past this threshold... This e-mail, including attachments, may include confidential and/or proprietary information, and may be

Re: [U2] Dimensioned arrays

2004-11-04 Thread Fred Finken
If I understand your problem, you can use INSERT exactly as you would with dynamic arrays: INS newValue1 BEFORE FLD(1)1,VMC INS newValue2 BEFORE FLD(2)1,VMC INS newValue3 BEFORE FLD(3)1,VMC etc. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [U2]

RE: [U2] Dimensioned arrays

2004-11-04 Thread Baakkonen, Rodney
PM To: [EMAIL PROTECTED] Subject: RE: [U2] Dimensioned arrays I am trying to find the best way to update a dimensioned array where any updates/changes are inserted to the beginning of each associated field My 2 cents worth is to convert the dimensioned array into a dynamic array then perform

RE: [U2] Dimensioned arrays

2004-11-04 Thread Stevenson, Charles
If I understand your problem, you can use INSERT exactly as you would with dynamic arrays: INS newValue1 BEFORE FLD(1)1,VMC INS newValue2 BEFORE FLD(2)1,VMC INS newValue3 BEFORE FLD(3)1,VMC etc. Heck, it is *possible* to INS *attributes*, not just values or subvalues: INS

RE: [U2] Dimensioned arrays

2004-11-03 Thread Trevor Ockenden
I am trying to find the best way to update a dimensioned array where any updates/changes are inserted to the beginning of each associated field My 2 cents worth is to convert the dimensioned array into a dynamic array then perform your inserts then convert back. Refer to MATPARSE and MATBUILD

Re: [U2] Dimensioned arrays

2004-11-03 Thread Mark Johnson
: Trevor Ockenden [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 9:56 PM Subject: RE: [U2] Dimensioned arrays I am trying to find the best way to update a dimensioned array where any updates/changes are inserted to the beginning of each associated field My 2 cents

RE: [U2] Dimensioned arrays

2004-11-03 Thread Womack, Adrian
I'm not sure why you'd want to use a dimensioned array in this particular case. But how about just adding the new elements to the end of the array and keeping a list of pointers in a small dynamic array. Then you can use this dynamic array to access the dimensioned array later. Eg. LAST.POS += 1