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: Ammar Hadi
  Where is Ammar Hadi?
 Al-Samawah
 Iraq
 Ammar Hadi
 Tags
Subject: RE: Failure to run twice
Thread ID: 228627 Message ID: 228640 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Reports and Printers
Date: Wednesday, May 20, 2009 11:55:35 AM         
   


> >
> > 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
>
> Hi Stefan,
>
> Or he can Add:
>
>
> SELECT yourCursor
> GO TOP
> 
> REPORT FORM .......
> 

> Best Regards.
>

Hi Ammar -

That does not always help because Grids are really notoriously jealous in trying to get their work-area back in the middle of running code unexpectedly :-)


Regards
-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