| || |
hi can anybody tell me why this comparison is always true for below code,
the code is
If Min<>Max1 Then
' Min<>Max1 condition is getting always true even if the values are not equal for example
Min=12 is getting true.
What is the problem, acutly am facing lot of troubles in comparison.
Thanks in advance.
If I have understood your question properly; your code shows that Min is not equal to Max1. The condition has to be true.
Am extreamly very sorry that was my typing mistake,
its getting true even if
what is the mistake?
Try to use Trim function on the variables.
If not Min=Max1 Then
Is it string or numeric value.
It could be because the GetROProperty would be returning the value as string.
If CInt(Min) <> CInt(Max1) Then