gettingstarted
[Top] [All Lists]

Re: gettingstarted Digest, Vol 2, Issue 24

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: gettingstarted Digest, Vol 2, Issue 24
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Thu, 27 May 2004 21:06:54 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
References: <20040527221525 dot 5B3F21EC1E5 at lists dot realsoftware dot com> <9FF66F46-B049-11D8-AAE6-000393DBA370 at copper dot net>
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>

<Prev in Thread] Current Thread [Next in Thread>