Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing form from loading in DE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00064758
Message ID:
00064780
Vues:
42
>>During the DE.Init of my form I check for the existance of a table. If it doesn't exist I issue a message stating that the file doesn't exist. At this point I want to stop instantiation of the form. How do I do this?
>Colin,
>
>You can't stop the form there but you can check for the table having been openned in the form's Load with;
>
> IF NOT USED("")
> RETURN .F.
> ENDIF

Thanks for the reply Jim and everyone else. I went with Jim's suggestion to use the Load event instead of Init. If I return .F. from the forms Load event the DE never gets processed.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform