[Gambas-user] Class names
Bruce Steers
bsteers4 at gmail.com
Fri Apr 28 17:46:21 CEST 2023
On Fri, 28 Apr 2023, 16:39 Bruce Steers, <bsteers4 at gmail.com> wrote:
> Your ami class can have a "property" called Connection.
>
> Making a class called Connection will conflict/override an existing class
> of the same name.
>
Additional note:
That's only if you are using the component that has Connection.class.
If you are not using the component that has Connection.class then you
should be able to create a class called Connection.class without problems.
> But the class does not need to be called Connection if the property name
> is.
>
> You can create a class called AmiConnection.class
>
> Then in Ami.class
>
> Property Connection as AmiConnection
>
> For example.
>
>
>
> On Fri, 28 Apr 2023, 14:22 Mayost Sharon, <sharon at 455.co.il> wrote:
>
>> Hello
>>
>> Is it possible to give a name to the class even if there is a class with
>> such a name in GAMBAS
>>
>> For example:
>> If I want to create a class called:
>> Ami
>> and another class named
>> Connection
>> Because I want to reach:
>> Ami.Connection
>>
>> My connection is a type of TCP communication
>> The Connection class is not a Database Connection
>>
>> Could it conflict with GAMBAS Connection?
>>
>> Or first it is better to give names that are not in GAMBAS
>>
>> Sorry, hope the English translation went well
>>
>> Thank you
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230428/7d8c100d/attachment.htm>
More information about the User
mailing list