Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to Cntbar()?
Message
De
04/11/2008 12:16:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01359433
Message ID:
01359561
Vues:
39
>We must be on the same wavelength. I tried both of those tricks last night myself!
>
>I just replaced CntBar() with _screen.formcount and PrmBar() with _screen.forms(i).caption and it works perfectly! All I needed to do was make sure the same record didn't get opened twice and I thought it would be easy. I guess it's a trade off. With _msm_windo and _mwindow it is no work at all to maintain a menu of open windows now. It wrote 50 or more lines of code to do the same thing in VFP 7. But the time I saved on that task, I squandered trying to access a popup that didn't yet exist! Always somethng new to learn with VFP.

Ok, Lynda - whatever you do
- make your code 'safe' : a form may disappear, use type('......') for WindowType and Caption before you access them
- loop backwards
- Take into account that toolbars are included in the _screen.Forms collection - test for the WindowType property
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform