06-11-2012, 06:25 PM
Looks like there is a space in one of the variables value and so is the result -1
Please try
the control enters the while loop and continues as condition always returns 0 if both the values compared are same.Hence some where inside the loop ,change the value of empid or eempid to fail the condition and thus exit the loop.
Please try
Code:
while strcomp (cstr(trim(eempid)),cstr(trim(empid)))=0