Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where goes the code
Message
De
03/06/1999 00:38:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00225781
Message ID:
00225801
Vues:
17
Hi Terry ----

Practically, yes. This is because the messenger or process object may not be able to expose a UI.

>Thanks very much John.
>If the commandbutton should control initiation and completion status displays, should it also handle the if messagebox("Continue",33,"Continuing Deletes current record")=1 type decision prompts? Also is there anything else that the command button should handle? I just finished reading Egger's book and I'm trying to clear up such issues. < TIA >
>
>>Hi Terry ---
>>
>>It belongs in the command button. The separate object communicates it's end status to the button which relates the status. If there is a wide range of outcomes, consider a messenger which would communicate the text of the outcome to the button.
>>
>>>If the job of a command button is to initiate code that goes in a custom method of the form or in a method of a separate object, where is the best place to put the conclusion of a process: the message that goes in the status bar indicating completion of the process or error in the process or whatever?
>>>
>>>Is it in the command button? In the method code? In its own message object?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform