I had created a physical file called 'Customer', one of the field in this file, that is 'customername' is a double byte field which can contains chinese characters. My problem is when I use %Substring to extract partially (eg first 2 characters) from this field (based on how many characters user was entered) and compare with the user key in field. The extracted field was not equal with the user key in field (In fact, both should be equal). I found that, If I %substring all the characters from this customername field, I do not have this problem. Can anybody give me some advise, what other method I can use to avoid problem. My intention is to find out how many records match the name key in by the user. For example, if user enter John, I want to know how many records are John%, that is JohnLee, JohnAlan etc. Thank you in advance.

Reply With Quote