Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 - Textboxes, Checkboxes, etc. share codes
Message
De
06/06/2003 05:02:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00797065
Message ID:
00797075
Vues:
22
>Hi all
>
>I have this set of classes for textbox, checkbox, combo, etc. Each of them require a minimum set of codes. right now if I make any changes to one I have to remember and change all of same code in other classes.
>
>Any suggestions.

Bhavbhuti,
How about you create a custom class (need not be in a vcx) and add common metods to it ?

ie:
*Assumed saved as CommonProcs.Prg
define class myCommonProc as Custom
 procedure CheckValidation
 lparameters toObj
 lcControlsource = toObj.Controlsource
*...
endproc
enddefine
* Base form class load
this.oCommon = NewObject('myCommonProc','CommonProcs.prg')

* A control's valid
thisform.oCommon.CheckValidation(this)
Cetin
Ç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