Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VCX vrs PRG
Message
 
 
À
08/12/1998 11:21:37
Tim Hockin
Illinois State U - Residential Computing
Normal, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00165009
Message ID:
00165146
Vues:
10
>>>Hi Nick ----
>>>
>>>>>When writing custom classes are there advantages/disadvantages to using prg files versus vcx?
>
>I'll play devils' advocate (note: I use .vcx's mostly, myself)
>
>in favor of .prg's:
>
>* If VFP Crashes, a text file (.prg) is mess likely to be corrupted
>* .prgs use (slightly) less disk space (moot point, really)
>* a .prg is easier to pull one particular class from, or to distribute part, but not all of a classlib
>* a .prg is easier to deal with outside of teh VFP environment (email or such)
>
>That said, I do use .vcx's because I like graphical subclassing.
>
>Tim

While I prefer vcx to prg, it is now easier in VFP 6 to have classes in a prg file because of the newobject() function. The second parameter of this function is the file name the object is located in. No need to set classlib to [with respect to vcx], etc.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform