At 6:52 PM -0700 5/27/04, Aubrey Todd wrote:
After posting the original problem, I rechecked
ProbStr=(2+1/2)+(3+1/4), and it has the same problem. You can watch
the value of Pos reset to a smaller value in the debugger. If you
try just (2+1/2), it works fine.
I have no idea of where to go from here.
Make a 3-line example of it, if you can, something like:
pos = 23
pos = InStr( pos, "Dec(2+1/2)+Dec(3+1/4)", ")" )
MsgBox str(pos)
I'm guessing you can't (certainly when I try this, I get 0). So,
either add more code to make this more like your troublesome code, or
start chopping your troublesome code down to make it more like the
simple code. The error is in there somewhere, and if code inspection
and stepping through it with the debugger don't work, then this is
the next weapon to try. At some point you will see the critical
difference between the code that works and the code that doesn't, and
then you will have found the logic error.
Cheers,
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|