|
Post by rikky on Jan 12, 2021 10:51:04 GMT 1
Hello I am using the latest FOSSIL from just minutes ago. list$ = "bla" & NL$ & \ "blabla" & NL$ & \ "bloep" & NL$ & \ "bliep" & NL$ & \ "bla" & NL$ & \ "bloepbloep" & NL$
PRINT PRINT "UNIQ:" PRINT UNIQ$(list$,NL$) response: bla blabla bloep bliep bloepbloep Somehow the newline has fallen away. The same with other delimiters. list$ = "bla|blabla|bloep|bliep|bla|bloepbloep|"
PRINT PRINT "UNIQ:" PRINT UNIQ$(list$,"|") Rik.
|
|
|
Post by bigbass on Jan 12, 2021 17:05:31 GMT 1
Hello Rik
I hope not to distract from your original report we need feedback on all things but you could solve this another way also
if you are testing some ideas working with strings
Joe
list$ = " bla\n|blabla\n|bloep\n|bliep\n| bla\n|bloepbloep\n|"
PRINT PRINT "UNIQ:" PRINT UNIQ$(list$,"|")
and to make it look neater in the formatting we can remove the spaces
list$ = "bla\n|blabla\n|bloep\n|bliep\n|bla\n|bloepbloep\n|"
PRINT PRINT "UNIQ: " PRINT ALIGN$(UNIQ$(list$,"|"),10,0)
|
|
|
Post by Pjot on Jan 12, 2021 19:45:12 GMT 1
Thanks rikky, Omg this is embarrassing, such a stupid bug This is wrong indeed. It is caused by remnants of my debugging code, which I used to implement the better-performance-version of UNIQ$. I simply overlooked to put back the delimiter when calling the final string construction function. The fix is in fossil already. As a matter of fact, this month I am trying to find a bug each day. So please do not hesitate to find more! Best regards, Peter
|
|