>> OK, I guess I can accept that. But why does my browse with a case SENSITIVE key refresh in a blink in my Win32 app but is slow in my NetTalk app? Isn't it the same file driver and View Engine?
yes, same file driver, same View Engine. The whole question of how View Filters work is discussed in my book, and is too long to duplicate here in full, but the edited summary goes something like this;
a) in a windows app you "bind" a bunch of variables, the construct a filter expression using those variables and the file variables.
b) A more effcient approach (in a web app) is to skip the bind step and create the expression with actual values.
thus in windows you might have
BIND('a',a)
Filter = 'fil:field = a'
whereas in Web you have
Filter = 'fil:field = ' & a
If a is a string you need quotes around it
Filter = 'fil:field = ''' & a & ''''
If a is in a Case Insensitive key you want to UPPER both sides;
Filter = 'upper(fil:field) = ''' & Upper(a) & ''''
If a is NOT in a Case Insensitive key then leave it as;
Filter = 'fil:field = ''' & a & ''''
I can't say use INSTRING in filters a lot, but your use of it appears wrong to me. Specifically I think you are expecting the omitted parameters (3 and 4) to default to ,1,1 - and (at least in normal clarion) they don't=.
As to the speed - the best way to debug that is to build up the filter slowly. ie first try
OEH:CustomerNumber >= 'BRO-030' AND OEH:CustomerNumber <= 'BRO-030
then add
OEH:DeliveryCode <> 'BK'
then add
INSTRING(OEH:TransCode,'ORDRET')
and report back on which part slows down.
cheers
Bruce