Le 08/11/2015 04:14, Benoît Minisini a écrit :
> Le 07/11/2015 15:20, Benoît Minisini a écrit :
>>
>> At the moment, you can't get any information on a class without loading
>> it into the interpreterer, which may have unwanted effects...
>>
>> I have the same need, so I may provide a solution in t
Le 07/11/2015 15:20, Benoît Minisini a écrit :
>
> At the moment, you can't get any information on a class without loading
> it into the interpreterer, which may have unwanted effects...
>
> I have the same need, so I may provide a solution in the future!
>
In revision #7457, I have added a Class.
On Sat, 07 Nov 2015, Beno??t Minisini wrote:
> Le 06/11/2015 06:04, Tobias Boege a ?crit :
> > Hi,
> >
> > in my project I have the need to enumerate all classes from my current
> > project (not from components) for which
> >
> >hClass Is X
> >
> > is true for some fixed class X, once at startu
Le 06/11/2015 06:04, Tobias Boege a écrit :
> Hi,
>
> in my project I have the need to enumerate all classes from my current
> project (not from components) for which
>
>hClass Is X
>
> is true for some fixed class X, once at startup. I think I tried
>
>For Each hClass In Classes
> hCu
If i remember well Classes can list only exported classes.
http://gambaswiki.org/wiki/lang/is
http://gambaswiki.org/wiki/comp/gb/class/parent
2015-11-07 11:43 GMT+01:00 Tobias Boege :
> On Sat, 07 Nov 2015, zainudin ahmad wrote:
>> On Fri, Nov 6, 2015 at 12:04 PM, Tobias Boege wrote:
>>
>> > Hi
On Sat, 07 Nov 2015, zainudin ahmad wrote:
> On Fri, Nov 6, 2015 at 12:04 PM, Tobias Boege wrote:
>
> > Hi,
> >
> > in my project I have the need to enumerate all classes from my current
> > project (not from components) for which
> >
> > hClass Is X
> >
> > is true for some fixed class X, once
May be this code can help.
Public Sub Main()
Dim sClass As String
Print "Count : " & Dir(".gambas").Count & "\n"
For Each sClass In Dir(".gambas")
Print sClass;
Try Print "-->" & Object.Class(Object.New(sClass)).Parent.Name '<--
this make class load into memory
If Error Then P
Hi,
in my project I have the need to enumerate all classes from my current
project (not from components) for which
hClass Is X
is true for some fixed class X, once at startup. I think I tried
For Each hClass In Classes
hCurrent = hClass
While hCurrent.Parent
If hCurrent.Parent