Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Report on Top???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00161531
Message ID:
00161579
Vues:
19
>>>Hi
>>>
>>>How I can tell if report is on top!!
>>>
>>>Something Similar to _Screen.Activeform. for Forms
>>>
>>>Thanks
>>
>>Hi Mo,
>>
>>I assume that you mean the preview window. In any event the title bar of the VFP window current on top can be retrieved by the use of two foxtools functions. Try:
>>
>>lctitle = _WTitle(_WOnTop())
>>
>>You can then examine that value to make the necessary determination.
>>
>>hth,
>
>Hi george
>
>I used those functions WTitle(WOnTop()) and they returned the _Screen title when the report preview was active.
>
Hi Mo,

After I posted this I ran a little test and while I didn't get the exact same results you did, they were inconsistent with what I expected. Have you tried putting in a loop to delay the checking until after you're sure that the preview window is active? I think what's happening is that the code immediately following the command is executed before the window can be created and displayed. While I haven't tested it, I do know that the functions will work provided the preview window is displayed.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform