Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WEXIST() problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00606840
Message ID:
00607375
Vues:
27
>The window name is "Printing...", not "Printed...".
>
>Also, IIF(WEXIST('Printed...'), WasReportPrinted = .T.,WasReportPrinted = .F.. is not a valid expression for On Exit.
>
>Do this instead:
>
>
>EXECSCRIPT('WasReportPrinted = WEXIST("Printing..."))
>
>
>If you're not using VFP7, you can't use EXECSCRIPT() so you'll have to put the statement in a UDF that you call from On Exit.
>

Cathy,
If the expression isn't too complex then you can use the _VFP.SetVar() to set variables and you don't have to create some outside entity to set a variable.
=iif(isnull(_VFP.SetVar('WasReportPrinted',wexist('Printing...'))),.T.,.F.)
Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform