Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to equal two Characters
Message
From
27/01/2010 15:16:42
 
 
To
27/01/2010 15:03:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01446224
Message ID:
01446233
Views:
45
>>>Hello i have the following code
>>>
>>>	
>>>MESSAGEBOX(thisform.pageframe1.page5.txtnum2.Value )&& pelt0006
>>>	MESSAGEBOX(cNextnum)&& pelt0006
>>>	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

It trims off any leading and trailing spaces so " ABC " becomes "ABC" in a comparison.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform