kodr
Programmer
- Dec 4, 2003
- 368
Arg, I don't get it. Below is some code (I'm working on a DDE example I got from Knob's web site) and for some reason the string comparision is failing.
I'm using the dialog box to verify that the string szText is picking up "end" correctly, but the if stricmp passes it by. I forced it to "end" (the commented out line) and it works correctly.. Anyone have any ideas? I've verified that there is no leading/training whitespace.
Code:
sdlgmsgbox "Here" szText stop ok iTemp
;szText = "end"
if stricmp szText "end" ;If cell contains the string exit
exitwhile ;Exit the while loop.
else
I'm using the dialog box to verify that the string szText is picking up "end" correctly, but the if stricmp passes it by. I forced it to "end" (the commented out line) and it works correctly.. Anyone have any ideas? I've verified that there is no leading/training whitespace.