Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing a form from within Init
Message
De
21/05/1998 11:46:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00100829
Message ID:
00100851
Vues:
48
Paul,
1) Set your DE.autoopen = .f. and if not returning .f., call thisform.de.opentables,
Or
2) Call thisform.de.closetables before returning .f.
Cetin
>I finally got the return .f. to work(the form doesn't get created), except now there is still an active data session with all the tables I opened still opened. Should the return .f. have cleared that out? How would I take care of this?
>
>Thanks again,
>
>>You could to call FindAcct first, and not DO the data entry form at all if FindAcct returns 0.
>>
>>>Hi Rick,
>>>
>>>Thanks for responding, I tried that and it doesn't work I debugged the code and I see that it issues the return .f. but keeps right on trucking through the rest of the code and the form never gets released. Weird, huh?
>>>
>>>>Try returning .F. from the INIT() event if this.txtAcct.value = 0
>>>>
>>>>>I have a data entry form that from within the Init I call a function FindAcct that gets a customers account by issuing another form(this.txtAcct.value = findacct()).
>>>>>
>>>>>FindAcct returns a zero if "Pick Customer" form is cancelled out of.
>>>>>
>>>>>So I want to release the data entry form if this.txtAcct.value = 0(or the Pick Customer was cancelled out of).
>>>>>
>>>>>This doesn't work. Can I release a form from within the init? If not, are there any suggestions of how I can accomplish this?
>>>>>
>>>>>Thanks,
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform