Hi If they're dimensioned, i.e.
DIM A(10) DIM B(10) Then you can do MAT B = MAT A to copy one to the other. There's complications when the dim size is different but this is all documented... Ed -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Mitchell Sent: 10 July 2008 22:44 To: [email protected] Subject: Re: [U2] [UV] [UB] Equating Two Arrays in UniBasic Is R.New or R.SOD being declared as a dimensioned array somewhere? If both are dynamic arrays, there should be no problem. I get the error you describe if I try to assign a dimensioned array to a dynamic array variable, such as: 0001: DIM X(100) 0002: Y="" 0003: X=Y The other way around produces a different error. So, it would seem to me that R.SOD is dimensioned, except that when I add in the read, I get "FROM" unexpected, Was expecting: '(' on the read in addition to the "Array must have subscripts" error on the assignment. Brutzman, Bill wrote: >It is not letting me do it. > >When I try something like... > > read R.SOD from F.SOH, Order.ID else R.SOD = '' > > R.New = '' > R.New = R.SOD > >The compiler says... Error... Array must have subscripts. > >Unless there is no other way... I would rather not build a new array... via >a loop... inspecting one item at a time. > >Suggestions would be appreciated. > >--Bill >------- >u2-users mailing list >[email protected] >To unsubscribe please visit http://listserver.u2ug.org/ > > > > -- Geoffrey Mitchell Programmer/Analyst Home Decorator's Collection 314-684-1062 ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------------------------------------------------------------------------------------------- Please remember to recycle wherever possible. Reduce, reuse, recycle, think do you need to print this e-mail? ------------------------------------------------------------------------------------------- This e-mail and any attachment(s), is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the addressee, dissemination, copying or use of this e-mail or any of its content is prohibited and may be unlawful. If you are not the intended recipient please inform the sender immediately and destroy the e-mail, any attachment(s) and any copies. All liability for viruses is excluded to the fullest extent permitted by law. It is your responsibility to scan or otherwise check this email and any attachment(s). Unless otherwise stated (i) views expressed in this message are those of the individual sender (ii) no contract may be construed by this e-mail. Emails may be monitored and you are taken to consent to this monitoring. Civica Services Limited, Company No. 02374268; Civica UK Limited, Company No. 01628868 Both companies are registered in England and Wales and each has its registered office at 2 Burston Road, Putney, London, SW15 6AR. ------------------------------------------------------------------------------------------- ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
