I am getting very strange results. If I use the result of a method in an expression, I get the wrong answer. It doesn't matter what the expression is, I still get the same (incorrect) result.
If I just use it to set the local variable, it is correct(234). The same thing happens if I use a property instead of a method. ODB is a method that does an OutputDebugString.
I need to know if this is a restriction on the use of a method result or if my code is somehow causing this odd behavior, what tools can I use to find out where the problem is?
There is way too much code to publish it all here.
Thanks...
Garry
The output is:
nDc1= -4692
nDc2= 234
nDc3= -4692
nDc4= -4692
If I just use it to set the local variable, it is correct(234). The same thing happens if I use a property instead of a method. ODB is a method that does an OutputDebugString.
I need to know if this is a restriction on the use of a method result or if my code is somehow causing this odd behavior, what tools can I use to find out where the problem is?
There is way too much code to publish it all here.
Thanks...
Garry
Code:
LOCAL nDc as LONG nDc = (newDirMap.GetCount()) - 1 ODB "nDc1= " + str$(nDc) nDc = (newDirMap.GetCount()) nDc = nDc - 1 ODB "nDc2= " + str$(nDc) nDc = (newDirMap.GetCount()) - 2 ODB "nDc3= " + str$(nDc) nDc = (newDirMap.GetCount()) - 500 ODB "nDc4= " + str$(nDc)
nDc1= -4692
nDc2= 234
nDc3= -4692
nDc4= -4692
Comment