I never tried...don't have the data etc. I just replied with the syntax that is more correct.
I don't use 'in' except when dealing with arrays, so totext(xxx + '-' + yyy) in zzz didn't make sense to me. if xxx or yyy were numbers, I believe that this would fail (can't add numbers like strings. Also, typically totext adds decimals and commas unless told not to (at least for numbers, dates are different)
so I replied that instr(zzz, xxx + '-' + yyy) > 0 should work better...it's been my experience that if your code doesn't work, you look for possible solutions, which is someone else's code.
Alas, we're not always correct, or there is some other twist that we are unaware of.
as for debugging, have you tried:
after evaluate (sPhysician)
global stringvar sPhysician;
sPhysician
just to check that the values that you think are in the string are actually there? debugging CR can be tough as it is a black box. You are pretty sure about what goes in, and you are positive about what comes out, but you can't see what CR is doing or how it is working, so sometimes you have figure out how to 'see' what CR is doing and compare that to what you thought CR was doing.
HTH