Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WindowType property readonly in Init event, why?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00984827
Message ID:
00984833
Vues:
30
This message has been marked as the solution to the initial question of the thread.
According to HELP "You cannot change the WindowType setting once the window has been displayed.". Strange but sometimes some of my forms are displayed in Init Event (even not complete all the code in it). I can't find the reason yet. Try
LPARAMETERS lpnDataSessionId, lpnWindowtype, lpnApr_id
WITH thisform
	IF VARTYPE(m.lpnWindowtype)="N" AND ;
           INLIST(m.lpnWindowtype,0,1)  AND ;
           .WindowType # m.lpnWindowtype ;
           .Hide()
           .WindowType = m.lpnWindowtype
           .Show()
	ENDIF
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform