Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class vs Prg
Message
De
31/03/2002 11:21:48
 
 
À
30/03/2002 21:59:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00639155
Message ID:
00639265
Vues:
25
Hi Steve,

This was close to what I was looking for. This discussion was about "PRG based classes" vs "VCX based classes".
I'm looking for a discussion on whether to create a class in the first place as opposed to just leaving it as a PRG.



>Here are a few background factors in PRGvsVCX
> http://fox.wikis.com/wc.dll?Wiki~PRGvsVCX
>
>**--** Steve
>
>
>>I just discovered the MessageBox Handler in the Component Gallery. It pretty much duplicates my own MB() function, except that I just keep it as a PRG and not in a VCX.
>>
>>My question is:
>>What advantage is there to making it a class?
>>My PRG does the same thing as the Handler.Show(), without having to have another object reference to clean up.
>>
>>
>>My own argument for PRG is that
>>  1. It takes less coding :
>>    lnResult = mb(cmessage,nbuttons,ctitle)
>>    vs
>>    lnResult = oObject.Show(cMessage,nButtons,cTitle)
>>  2. No chance of a dangling object reference.
>>
Bill Morris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform