Is was not a bug, it was a feature!

We use it to add a subfield if there is data, but not to add blank subfields. Great!

New behaviour is not as if $OPTIONS EXTRA.DELIM is set (thanks Ray), as it only adds one extra delim. Still not suitable when keeping several items in synch.

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


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



Goo'day, Kate,

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....

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!
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to