I don't think MV participates with the OPTION BASE 0 or 1 that allows the use of REC(0) that VB etc does. MV tends to count things starting with 1 and MS starts with 0. REC<0> etc tends to be confusing as it's not the primary key either.
I use OPTION BASE 1 to keep my head on straight when progamming in VB. My 1 cent. ----- Original Message ----- From: "George Gallen" <[EMAIL PROTECTED]> To: <u2-users@listserver.u2ug.org> Sent: Thursday, May 12, 2005 12:04 PM Subject: RE: [U2] I'm in an Array quandry, any suggestions... > OK. ours is being stored in element zero. None of the programming use element > zero > so that is good. > > George > > >-----Original Message----- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED] Behalf Of Brian Leach > >Sent: Thursday, May 12, 2005 11:36 AM > >To: u2-users@listserver.u2ug.org > >Subject: RE: [U2] I'm in an Array quandry, any suggestions... > > > > > >George, > > > >It really matters what flavor you're running. > > > >If you run a flavor that puts the overspill in element zero, > >you may be ok. > >If you run a flavor that puts the overspill into the last element, that > >might mess up any accesses to that element in the existing code. > > > >Brian > > > >> -----Original Message----- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] On Behalf Of > >George Gallen > >> Sent: 12 May 2005 16:01 > >> To: u2-users@listserver.u2ug.org > >> Subject: RE: [U2] I'm in an Array quandry, any suggestions... > >> > >> WOW. I just found an interesting "feature" of UV. > >> > >> You can MATREAD a record that has more fields than are dimensioned, > >> and you can MATWRITE that record back out INTACT without > >> getting an error, > >> > >> It only bombs with an out of bounds error when you try to > >> reference a subscript > >> past the dimension. > >> > >> So....as long as any of those program dont try to mess with > >> data it doesn't know > >> about, we "should" be safe. > >> > >> George > >> > >> >-----Original Message----- > >> >[mailto:[EMAIL PROTECTED] Behalf Of > >George Gallen > >> > > >> >I'm modifying some programs that were written about 15-20 > >years ago, > >> >there must be 30 or 40 that > >> > interact with each other. > >> > > >> >Here is the problem. > >> >All the programs use dimensioned arrays, and they were > >> dimensioned to > >> >exactly what was needed at the time, now I need to add 4 > >> fields to one > >> >program. But I'm afraid if another program reads this > >newly created > >> >array, it will bomb out with an array out of bounds error. > >> > > >> >What is on my side, is all the programs that reference these > >> files, all > >> >use the same variable name. > >> > > >> >My initial thought was to write a small program that will > >> > 1. open a program > >> > 2. search for a dimension of the suspect variable(s) > >> > 3. increase it's dimension level > >> > 4. write the program back out > >> > 5. recompile the program (I don't believe any are cataloged) > >> > > >> >Any other ideas? > >> ------- > >> u2-users mailing list > >> u2-users@listserver.u2ug.org > >> To unsubscribe please visit http://listserver.u2ug.org/ > >------- > >u2-users mailing list > >u2-users@listserver.u2ug.org > >To unsubscribe please visit http://listserver.u2ug.org/ > ------- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/