Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Jim Hawkins
  Where is Jim Hawkins?
 Douglas, Isle of Man
 United Kingdom
 Jim Hawkins
 Tags
Subject: RE: Failure to run twice
Thread ID: 228627 Message ID: 228635 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Reports and Printers
Date: Wednesday, May 20, 2009 11:39:23 AM         
   


> A user of one of my apps which has been in use for years has just found a strange bug.
> One of the reports will only run once. If she selects it again from the reports submenu, nothing happens - she has to reboot and restart the app to be able to run it again. She can select and run all the other reports except that one and a very similar one, which runs but crashes due to failure to recognize a progress bar class. That similar report runs fine when it's run first, it only crashes when it's run immediately after the other one..
> The report routines all finish by closing all files and releasing all variables.
>
> Can anyone suggest what's happening ?
>

As for the first one: a Report Form command seems to do nothing if there are no data to report.
That effect can be caused by an unexpected work-area, which in turn can be caused by a _screen.ActiveForm that contains a grid being the active control, and that way causes the current work-area to switch unexpectedly.
In such cases it usually helps to do a "Thisform.anyOtherControl.SetFocus()" right before the Report Form command.



hth
-Stefan

ENTIRE THREAD

Failure to run twice Posted by Jim Hawkins @ 5/20/2009 11:09:23 AM
RE: Failure to run twice Posted by Ammar Hadi @ 5/20/2009 11:24:30 AM
RE: Failure to run twice Posted by Jim Hawkins @ 5/20/2009 11:37:36 AM
RE: Failure to run twice Posted by Ammar Hadi @ 5/20/2009 11:52:58 AM
RE: Failure to run twice Posted by Stefan Wuebbe @ 5/20/2009 11:39:23 AM
RE: Failure to run twice Posted by Ammar Hadi @ 5/20/2009 11:47:55 AM
RE: Failure to run twice Posted by Stefan Wuebbe @ 5/20/2009 11:55:35 AM
RE: Failure to run twice Posted by tushar @ 5/20/2009 12:11:50 PM
RE: Failure to run twice Posted by Jim Hawkins @ 5/20/2009 1:39:23 PM