Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Yearwood
  Where is Mike Yearwood?
 Toronto
 Canada
 Mike Yearwood
 To: Matthew Olson
  Where is Matthew Olson?
 Manhattan
 Kansas - United States
 Matthew Olson
 Tags
Subject: RE: oddities on a form
Thread ID: 311206 Message ID: 311249 # Views: 36 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Wednesday, June 29, 2011 11:31:24 PM         
   


> >
> > Do not switch set exact. Leave it off. To do an exact match use ==.
> >
> > Your code is doing a lot of filtering. Perhaps you've left a filter from a previous run. The seek will fail if it does not match the current filter.
> >
> > Mike Yearwood
> > Microsoft MVP Visual FoxPro 2008, 2009
> > We have enough youth. We need a fountain of smart!
> > There may be many ways to skin a cat, but there are very few right ways to do it.
>
>
> Interesting thought. So I first commented out all the the filter commands and put the results of Filter() in a wait window. It showed nothing as I would expect it to. So no filters are set.
>
> Then I uncommented the filter commands to see what Filter() would show. It showed: FMID#"888888888888" .AND. FMID#"999999999999". This is exactly what I want it to do in this case and is correct.
>
> It also occurred to me that if it was a filter issue, wouldn't running it with Set Step On show the exact same thing as running it regular?
>
> I do agree with you that using the == is much better than setting exact on and off. I have never previously played with set exact before today.
>
> Thanks, Matthew

I can't really plow into your code. I'd do ...

IF NOT SEEK()
SET STEP ON
ENDIF

Then you can examine the environment at the time of failure. Examining it before is a Heisenbug.

Mike Yearwood
Microsoft MVP Visual FoxPro 2008, 2009
We have enough youth. We need a fountain of smart!
There may be many ways to skin a cat, but there are very few right ways to do it.

ENTIRE THREAD

oddities on a form Posted by Matthew Olson @ 6/29/2011 4:48:19 PM
RE: oddities on a form Posted by Liaqat Ali GB @ 6/29/2011 9:04:28 PM
RE: oddities on a form Posted by Matthew Olson @ 6/29/2011 9:15:30 PM
RE: oddities on a form Posted by Liaqat Ali GB @ 6/29/2011 9:39:08 PM
RE: oddities on a form Posted by Matthew Olson @ 6/29/2011 10:03:25 PM
RE: oddities on a form Posted by Liaqat Ali GB @ 6/29/2011 10:21:10 PM
RE: oddities on a form Posted by Matthew Olson @ 6/29/2011 10:30:42 PM
RE: oddities on a form Posted by Mike Yearwood @ 6/29/2011 11:03:18 PM
RE: oddities on a form Posted by Matthew Olson @ 6/29/2011 11:26:34 PM
RE: oddities on a form Posted by Mike Yearwood @ 6/29/2011 11:31:24 PM
RE: oddities on a form Posted by Matthew Olson @ 6/29/2011 11:59:27 PM
RE: oddities on a form Posted by Mike Yearwood @ 6/30/2011 12:01:26 AM
RE: oddities on a form Posted by Tamar Granor @ 6/30/2011 10:25:20 PM
RE: oddities on a form Posted by Matthew Olson @ 6/30/2011 10:29:21 PM
RE: oddities on a form Posted by Tamar Granor @ 7/1/2011 10:17:34 PM
RE: oddities on a form Posted by James Frye @ 7/2/2011 5:25:41 PM
RE: oddities on a form Posted by Anders Altberg @ 7/2/2011 7:31:29 PM