Chcuk,
Forget my lastr eply. The problem is as Keith pointed out.
mProduct = "" is
Always TrueThat is how strings are compared in xBase. The strings are comapred one character at a time until the striong on the right is exhausted. Your string on the right has a length of 0 so it is equal to anything on the left.
Fix this by using the EMPTY() function instead.
IF EMPTY(mProduct)
...