Hi John,

I had to jump in here, if for no other reason than to let people know I'm still alive and kicking. :-)

When you said "One thing you CAN'T do is insert a value." I hope you meant attribute. You can insert (and delete) values and subvalues all day long. If you are working with an item where a specific attribute position has meaning, and hopefully a dictionary item that defines it, you would not want to insert attributes anyway. That would lead to hair-pulling, gnashing of teeth and other bad things. If you're working on a variable length item such as a list of IDs, report, etc., a dynamic array is definitely the way to go. Just use whichever best fits the needs of the situation. Neither is inherently good or bad - it's all context driven.

Regards,
Charlie Noah

Tiny Bear's Wild Bird Store
"Everything For The Backyard Bird Enthusiast, Except For The Birds"
http://www.TinyBearWildBirdStore.com
Toll Free: 1-855-TinyBear (855-846-9232)


On 07-27-2012 11:27 AM, Israel, John R. wrote:
SPEED!

Other than the extra time spent to build it, it is MUCH faster to access VAR(1000) 
than to access VAR<1000>.

If I know my variables are going to be small or I am doing reads, yeah, I use 
dynamic arrays.

If I am building some big arrays in a program, I usually use dim arrays.

One thing you CAN'T do is insert a value.

If I have a real ugly array in a pgm that needs 1 more level of delimiting 
beyond @SVM, I will use a DIM array as my first level.  Yeah, I know @TMs 
exist, but the functions do not know how to use them.



John



-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
Sent: Friday, July 27, 2012 11:16 AM
To: U2 Users List
Subject: [U2] Array Types

I am surprised that anyone uses dimensioned arrays.  I use dynamic arrays for 
everything.

If there are any advantages that dimension arrays have over dynamic... please 
let me know... without getting sentimental.

--Bill
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to