>>>Hello i have the following code
>>>
>>>
>>>MESSAGEBOX(thisform.pageframe1.page5.txtnum2.Value )
>>> MESSAGEBOX(cNextnum)
>>> IF cnext == thisform.pageframe1.page5.txtnum2.Value
>>> MESSAGEBOX('caught')
>>> ELSE
>>> MESSAGEBOX('not caught')
>>> ENDIF
>>>
>>>
>>>
>>>Any one can tell me why the message "Not Caught" comes up?
>>>i use if cnextnum== and = no difference
>>
>>Try
>>
>>IF ALLTRIM(cnext) == ALLTRIM(thisform.pageframe1.page5.txtnum2.Value)
>> MESSAGEBOX('caught')
>>ELSE
>> MESSAGEBOX('not caught')
>>ENDIF
>>
>
>
>yea alltrim works(thou i have to figure what it really does)
>YOu >all :D
Check in VFP Help "Relational Operators"
Type in the keyword to find:
==
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst