:: krowemoh

Thursday | 26 DEC 2024
Posts Links Other About Now

previous
next

Adding Null Strings - D3 and UV

2023-07-25
pick, basic

The same program in UniVerse and in D3 will give you different results. This has to do with the way null strings are tacked on. UniVerse will not add the attribute mark for a blank append, D3 will.

   X = ''
   X<-1> = 1
   X<-1> = ''
   X<-1> = 3
   CONVERT @AM TO '|' IN X
   PRINT X

This will output in UniVerse:

1|3

whereas in D3, it will be:

1||3

Fun! I got bit by this when porting my HTTP server.