Jolle Carlestam Error in quicksearch word search simulation
Jan 17, 2008; 09:37
Jolle Carlestam
Error in quicksearch word search simulation
I stumbled across a strange behavior using quicksearch in the grid type.
Couldn't understand why search in a field populated by a checkbox selection didn't come up with the expected result. If I searched for a word that was preceded by a line feed I got the wrong result. Like if I search for "Lördag" and there's records like
Record 1 Fredag Lördag
Record 2 Lördag
Only the second record would be found.
Turns out that the culprit seems to be this piece of code:
local:'wordseparators'=',.- ("@\r\n';
/.../
#wordseparators = #wordseparators -> (split: '');
This results in one of the \r\n to be skipped.
Here's a simple fix to correct the issue:
local:'wordseparators'=',.- ("\r@\n';
By separating them it seems as if Lasso accepts both \r and \n. At least my search problem disappeared.
HDB Jolle
############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
Jan 22
Johan Solve Re: Error in quicksearch word search simulation
Jan 22, 2008; 12:04
Johan Solve
Re: Error in quicksearch word search simulation
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!