[Gambas-user] List al the classes and symbols

Charlie Ogier charlie at cogier.com
Sun Jun 26 16:07:45 CEST 2022


Hi Martin,

Have a look at Gambas_Classes on the Farm. Picture of the program is 
here https://www.cogier.com/gambas/Gambas_classes.png.

Charlie.

On 26/06/2022 11:30, Martin wrote:
> Hi,
> I want to list all the Gambas classes for all components.
>
> Public Function AllClases() As Collection
>
>   Dim cClass As New Collection
>   Dim obj As Object = ? ' what object would be here?
>   Dim MyClass As Class = Object.Class(obj)
>   Dim sSymbol As String
>
>   For Each sSymbol In MyClass.Symbols
>       Print MyClass.Name & ": " & sSymbol
>   Next
>
>   Return cClass
>
> End
>
> Best regards.
> Martin
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----



More information about the User mailing list