Well, you know they say one man's bug is another man's feature (or Woman)!

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kate Stanton
Sent: Wednesday, July 19, 2006 14:59
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Changed BASIC varname<1,-1>


This is not a bug - it is a feature that has been available for over 20
years that I know about.

A<-1> = B does not change A if B is blank.  Means there are no blank items
in A.  Useful!

----- Original Message -----
From: "Allen E. Elwood" <[EMAIL PROTECTED]>
To: <u2-users@listserver.u2ug.org>
Sent: Thursday, July 20, 2006 9:16 AM
Subject: RE: [U2] Changed BASIC varname<1,-1>


> Reviving an old thread.
>
> I was emailing a friend about this and he came up with a unique suggestion
> that is a direct replacement for the <-1> but actually works as desired.
> And I've wiped out the original post, so I'm not sure who originated it.
> But if you're still out there and still looking for an easier route, this
> may do it for you.
>
> I got bit by the <-1> bug today in mvBase and already had it changed to a
> direct assignment when Trey sent this to me.  So if you're using mvBase,
> beware the <-1> 'bug' lives there as well.  fwiw...
>
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 19, 2006 13:53
> To: Allen E. Elwood
>
>
> I always use   A.VAR := @AM[1,NOT(NOT(A.VAR))]:NEW.DATA
> It is much more reliable and much quicker than <-1>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Allen E. Elwood
> Sent: Tuesday, May 23, 2006 10:44
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] Changed BASIC varname<1,-1>
>
>
> Oh yeah, sure.  I agree.  Using LOCATE or FOR/NEXT is my preferred method,
> but the <-1> does come in handy in some cases, and actually was the main
> point of the original posting (see bottom in case you weren't following
> this
> thread)
> <snip>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Kevin King
> Sent: Tuesday, May 23, 2006 10:09
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] Changed BASIC varname<1,-1>
>
>
> If you want them to stay in sync, keep a pointer variable and update
> each multivalue in tandem using the variable (which points to the mv
> position) rather than use -1.  Personally, I think -1 is fine if
> there's only one array; if there are multiple to keep in tandem -1 is
> a yellow flag, fraught with all sorts of impending data corruption.
>
>
> -Kevin
> [EMAIL PROTECTED]
> http://www.PrecisOnline.com
>
> -----Original Message-----
>
> <snip>
>>Previously, code of A<1,-1> = B, when B was blank made no change to
> A.
> -------
> 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/

Reply via email to