Barry Brevik wrote: > Thanks for the replies. I would have preferred to use dynamic arrays > because... well, because they are dynamic.
I think what David was pointing out with his quote from the manual set is that the DIM statement is your friend. IIRC the INMAT() function will tell you how big a your dimensioned array is, and if you need to make it bigger or smaller you can use DIM to change it so long as you use the right $OPTIONS. Dynamic arrays have their uses, but as others have said, a storage place for file variables is not one of them. The way I tend to look at things is that if I frequently need to search for a value in a list, I'll use a dynamic array, but if I need to frequently access a list by a known, computed, or looked up index, I'll use a dimensioned array. A dimensioned array is the closest thing you can get to a real array in UniBASIC, some would even call them real arrays, but as a 'C' programmer I find them a bit limiting. A dynamic array isn't really an array at all - its just a delimited list with a number of supporting manipulation functions. Cheers, Ken ------- u2-users mailing list [EMAIL PROTECTED] http://www.u2ug.org/listinfo/u2-users
