[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class keyword



On 5/3/24 04:25, Benoît Minisini wrote:
Le 03/05/2024 à 13:16, Mayost Sharon a écrit :
Hello

I am trying to learn the source code of GRIDVIEW

At the beginning of the GridView.Class file
In the third line it says: Class TableView
Export
Inherits UserControl
Class TableView

Is it possible to get an explanation of what this line means?
According to the documentation TableView is an inheritance of GridView
And so I had trouble understanding what it was about

Thank you



"Class TableView" just tells the compiler that it must not raise an error if it encounters the TableView class name.

This is used at line 375 to draw the grid differently if the GridView ia is actually a TableView. It's a bad trick. :-)

Regards,

Maybe we can change it to ' extern class TableView ' this being easier to understand, and read??

--
~~~~ Brian

Attachment: OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


References:
Class keyword"Mayost Sharon" <sharon@xxxxxxxxx>
Re: Class keywordBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>