Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tastrade's application class
Message
De
01/06/1997 09:17:14
Siu-Hung Lai
The Hong Kong University of Sci. & Tech.
Hong Kong, Hong Kong
 
 
À
01/06/1997 08:32:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00034418
Message ID:
00034422
Vues:
35
Jim,
"VFP Application object", It is new to me. When is it created? Does it refer to my application? I am quite new to OOP/VFP programming. Thanks for answering my last question. You save me a lot of time to find out the hidden properties.

Thanks,
S.H.

>Siu-Hung
>
>This is yet another of those "forgotten" things in the VFP documentation.
>The VFP Application object (not the TasTrade one) has a property called "Forms" which is not listed in the properties list. It also has a property "Count" which is not listed.
>
>I got stuck on this very same statement and someone else here helped me out!
>
>Good luck,
>Jim N
>
>>The APPLICATION class of sample Tastrade cantains the following code in Cleanup() method
>>
>>*******************************
>>LOCAL lnForm, lnFormToClose
>>LOCAL loForm
>>
>>THIS.lQuitting = .T.
>>FOR EACH loForm IN application.Forms
>> IF TYPE("loForm") == "O" AND loForm.Baseclass == "Form"
>> IF !loForm.QueryUnload()
>> RETURN .F.
>> ENDIF
>> loForm.Release()
>> ENDIF
>>ENDFOR
>>RETURN .T.
>>********************************
>>What I don't understand is "application.Forms". Since it uses "FOR EACH...", .Forms should be an array property of application class. But I can't find it from the property sheet. Would someone please tell me where does it come from.
>>
>>Thanks in advance
>>S.H.
Siu-hung Lai
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform