Someone once told me not to use <1,-1> just because of this problem but to
use a counter var.
    K += 1
   MV <1,K>  = datawhat

I have not tested this, but looks like you have the scenario to validate
this.....

Garry Smith
Dir. Info Systems 
Charles McMurray Company
V# 559-292-5782   F# 559-346-6169



> -----Original Message-----
> From: Allen E. Elwood [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, May 23, 2006 9:16 AM
> To:   [email protected]
> Subject:      RE: [U2] Changed  BASIC varname<1,-1>
> 
> Hi Guys,
> 
> Well....fwiw...I consider this correct.
> 
> If I have multiple variable dataset that I'm creating I want them to stay
> in
> synch even if one of them is blank.
> 
> i.e.
> 
> ITEM.SHIPPED<1,-1>  = REC<1>
> QTY.SHIPPED<1,-1>   = REC<2>
> HANDLING.CODE<1,-1> = REC<3>
> 
> Lets say that there was no special handling code on the third iteration.
> Now my forth iteration DOES have a special handling code, but now it would
> appear as if it belonged to the third, not the forth item.
> 
> I would have to
> ITEM.SHIPPED<1,-1>  = REC<1>
> QTY.SHIPPED<1,-1>   = REC<2>
> IF REC<3> = "" THEN
>   HANDLING.CODE<1,-1> := REC<3>
> END ELSE
>   HANDLING.CODE<1,-1> = REC<3>
> END
> 
> Which adds a lot of bulk to the code, especially if I have a lot of
> variables to build.
> 
> Oh Well, you know that they say..."One man's bug is another man's
> feature!"
> 
> (Or woman!)
> 
> 
> Allen E. Elwood
> www.tortillafc.com
> 
> Quality Code Since 1978
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Bruce Nichol
> Sent: Tuesday, May 23, 2006 00:02
> To: [email protected]
> Subject: Re: [U2] Changed BASIC varname<1,-1>
> 
> 
> Goo'day, Kate,
> 
> At 17:56 23/05/06 +1200, you wrote:
> 
> >Previously, code of A<1,-1> = B, when B was blank made no change to A.
> >Now a value mark is added.  If the last char is a value mark, it doesn't
> add
> >another one.
> >I consider this a bug, as it changes old behaviour.
> >Does anyone but me think this is a problem?
> 
> Just quickly... IIRC, somebody mentioned a UV OPTION to give you either
> which way... Last week or so..... Sorry, but check the archives....
> 
> And some people say various LOCATEs are a problem.... but I find this
> inserting a null to be a bigger bugger....
> 
> >Using Universe 10.1.18 PICK flavour on Windows.
> >
> >Kate Stanton
> >Walstan Systems Ltd
> >4 Kelmarna Ave, Herne Bay, Auckland, New Zealand
> >Phone +64 9 360 5310
> >Fax +64 9 376 0750
> >-------
> >u2-users mailing list
> >[email protected]
> >To unsubscribe please visit http://listserver.u2ug.org/
> >
> >
> >
> >--
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 22/05/06
> 
> Regards,
> 
> Bruce Nichol
> Talon Computer Services
> ALBURY        NSW     2640
> Australia
> 
> http://www.taloncs.com.au
> 
> Tel: +61 (0)411149636
> Fax: +61 (0)260232119
> 
> If it ain't broke, fix it till it is!
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 22/05/06
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to