Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suppressing Message Box
Message
De
25/08/2001 19:51:15
 
 
À
24/08/2001 18:13:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00548812
Message ID:
00549197
Vues:
21
>>Craig,
>>
>>>>I'm wondering if there's a simple way to suppress the message box that pops up to display the page count whenever a report is run in VFP. This is the command I'm using to print the report:
>>>>
>>>>REPORT FORM STMT1 NOCONSOLE TO PRINT
>>>>
>>>>I've tried setting TALK OFF, but that doesn't work. I'm making the transition from FoxPro Dos 2.6 to VFP, so please forgive me if this seems like a dumb question. I'm using VFP 5.0
>>>>
>>>>Thanks for any help!!
>>
>>
>>>In the Report, you can call a function that does:
>>>
>>>MOVE WINDOW "Printing" to -100, -100
>>
>>Does this command just move the message box off the screen? I'm just double checking to make sure is all.
>
>
>Yup. There's no way you can totally suppress it. I wish you could. When you do this, it will flash for a moment, then disappear.

You *can* keep it from ever being displayed: (it's there, you'll just never see it)
DECLARE INTEGER GetDesktopWindow IN WIN32API
DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle
hWin = GetDeskTopWindow()
LockWindowUpdate(hWin)
REPORT FORM x to print
LockWindowUpdate(0)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform