OK the documentation for REPLACE says something about inserting empty strings. For information flavour it does say the @FM will be added for empty strings without making a distinction between adding to an empty or non empty array.
If this is a feature then it implies major code revisions for me whereever I use the <-1> construct. What would be the shortest/smartest way of adding strings including non significant nulls? I hate to do:
A = ''
....
....
INPUT B; * May be empty
IF LEN(B) THEN
A<-1> = B
END ELSE
IF LEN(A) THEN
A<-1> = B
END ELSE
A = @FM
END
END
I have also tested
A<1> = ''
A<2> = ''
A<3> = 3
A<4> = ''
A<5> = 5
and it inserts the @FM as expected but this involves maintaining a counter for the dynamic array.
Louis Windsor <[EMAIL PROTECTED]> wrote:
I think this is a "feature".Universe does NOT insert non-significant nulls. In other words your first two(A<-1> = '') do not do anything! It is consistent in its' behaviour as you cancount on it to do the above. It has done this as long as I remember.I found this out through bitter experience.Louis_______________________________________________----- Original Message -----From: Marco ManyevereSent: Tuesday, February 03, 2004 12:55 PMSubject: VARIABLE<-1> = '' Inconsistent behaviourHi All,Consider the program:A = ''A<-1> = ''A<-1> = ''A<-1> = 3A<-1> = ''A<-1> = 4PRINT A<3>I expect it output '3' but it outputs '4'. Whats the explanation? I'm on UV 9.6 [NT] running information flavour.Regards,Marco
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80
_______________________________________________
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
_______________________________________________ u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users