Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Holding the name of a control as a string?
Message
 
À
05/03/2002 16:13:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00628023
Message ID:
00628685
Vues:
32
Thanks - that was only idea to stop this problem with the form not firing the lost focus... but I will put in anyway - I think that's really good!

I am struggling with this...

The name of the form I store as a string in oApp.TopForm...
case .pNodeValue = 9
if !oApp.TopForm = ""
local strCheckQU
strCheckQU = evaluate(oApp.TopForm) 
if strCheckQU.queryunload()

if !oApp.TopForm = "frmcontacts" AND !oApp.TopForm = ""
oForm.mCloseForm(oApp.TopForm)
endif
if !oApp.BottomForm = ""
oForm.mCloseForm(oApp.BottomForm)
endif
oForm.mLaunchForm('frmcontacts')
oApp.CaptionPLus = " :: [Customers]"
endif
else
if !oApp.TopForm = "frmcontacts" AND !oApp.TopForm = ""
oForm.mCloseForm(oApp.TopForm)
endif
if !oApp.BottomForm = ""
oForm.mCloseForm(oApp.BottomForm)
endif
oForm.mLaunchForm('frmcontacts')
oApp.CaptionPLus = " :: [Customers]"
endif
That throws an error... "Variable Name of the form not found..."
Chris Maiden
Email
Web
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform