partial_defines_a_partial_class_.htm
Navigation: Clarion.Net (Clarion#) > Clarion# Language Extensions > CLASS attributes >====== PARTIAL (defines a partial class) ====== | |
PARTIAL
The PARTIAL attribute defines a CLASS as a partial class. A partial class is simply a class definition that is split into more than one physical file. The compiler doesn't see a difference because all of the files that make up a class are simply grouped into a single entity. Since the classes are just merged together and compiled, you can't mix languages. That is, you can't have one part of a class in C# and another in Clarion.
Example:
CompanyForm CLASS(System.Windows.Forms.Form),TYPE,NETCLASS,PARTIAL |
toolStrip &System.Windows.Forms.ToolStrip,PRIVATE |
toolStripButtonCancel &System.Windows.Forms.ToolStripButton,PRIVATE |
toolStripButtonAccept &System.Windows.Forms.ToolStripButton,PRIVATE |
CompanyBindingSource &System.Windows.Forms.BindingSource,INTERNAL |
components &System.ComponentModel.IContainer,PRIVATE |
errorProvider &System.Windows.Forms.ErrorProvider,PRIVATE |
tabControl &System.Windows.Forms.TabControl,PRIVATE |
InitializeComponent PROCEDURE(),PRIVATE |
NameLabel &System.Windows.Forms.Label,PRIVATE |
NameTextBox &System.Windows.Forms.TextBox,PRIVATE |
AddressLabel &System.Windows.Forms.Label,PRIVATE |
AddressTextBox &System.Windows.Forms.TextBox,PRIVATE |
CityLabel &System.Windows.Forms.Label,PRIVATE |
CityTextBox &System.Windows.Forms.TextBox,PRIVATE |
StateLabel &System.Windows.Forms.Label,PRIVATE |
StateTextBox &System.Windows.Forms.TextBox,PRIVATE |
ZipcodeLabel &System.Windows.Forms.Label,PRIVATE |
ZipcodeTextBox &System.Windows.Forms.TextBox,PRIVATE |
PhoneLabel &System.Windows.Forms.Label,PRIVATE |
PhoneTextBox &System.Windows.Forms.TextBox,PRIVATE |
tabPage1 &System.Windows.Forms.TabPage,PRIVATE |
END |
partial_defines_a_partial_class_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1