Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form disappears
Message
De
02/09/2008 19:03:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Form disappears
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01344341
Message ID:
01344341
Vues:
47
Here is something wierd. I have an old app that hasn't been used for a couple of years. It still runs fine on my PC but when loaded on another PC will start but the mainform is nowhere to be seen. The following code in in my login form and launches the mainform.
sele control
loca for allt(item) = "firstform"
*set step on
if found()
	firstform = allt(value)
*	try
		do form &firstform
*		catch
*			messagebox("Cannot launch " + &firstform, 16)
*		endtry
*	else
*		messagebox("Cannot locate the main form.",16)
endif
thisform.release
The try/catch and the else phrase was added in an attempt to find out if the users pc couldn't find the form. Now here is what's wierd, on MY PC the program works fine without the added code, but with the added code the program starts and runs but the main form is gone. The debugger shows that the mainform.visible has been set to false. Has anyone run into something like this before?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform