Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close Preview with a Keystroke
Message
From
30/01/2004 12:52:18
 
 
To
30/01/2004 12:45:56
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00872421
Message ID:
00872427
Views:
10
Hi, Kenneth.

>I've got this snippet of code in an application:
>
>PUBLIC loForm
>loForm = CREATEOBJECT( 'reportform' )
>WITH loForm
> .Caption = "Preview"
> .WindowState = 2 && Maximized
> .Show()
> REPORT FORM ( cFrx ) PREVIEW WINDOW (.Name)
> .Release()
>ENDWITH
>RELEASE loForm
>
>This snippet is embedded inside a SCAN loop to display a set of user defined reports. The current version runs all of the selected reports without any way to exit the loop. I can escape from the loop easy enough, but I'd like to be able to close the previewed report with a keyboard command. I haven't found a way to use NOWAIT, nor get the preview to respond to a keyboard.

You can use LastKey() inside your scan to check if the user finished by pressing Esc, for example.

Hope this helps,
Previous
Reply
Map
View

Click here to load this message in the networking platform