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

Re: Is there a way to tell if a class symbol is a variable, method etc


Thanks Bruce !

On October 11, 2026 3:05:52 PM PDT, Bruce Steers <bsteers4@xxxxxxxxx> wrote:
>On Sun, 11 Oct 2026 at 22:54, Brian G <brian@xxxxxxxxxxxxxxxx> wrote:
>
>> I can get a list of symbols from a class, but is there a way to find out
>> if they are methods etc.
>>
>> There appears to be ways to call and get the value and find out if a
>> symbol exists, but is there a way to find out what type of symbol it is?
>>
>> For instance,  using in a _read or _write class function to know which
>> symbols to save or load on write or read of the object.
>>
>> right now you do a getproperty on every symbol but sometimes it does not
>> return an error on a method... or constant etc.
>>
>> --
>> ~~~~ Brian
>
>
>check out wiki for Symbol class (it's hard to find)
>https://gambaswiki.org/wiki/comp/gb/.symbol
>
>For Each sSymbol As String In Classes["Form"].Symbols
>  With Classes["Form"][sSymbol]
>    Print .Name;; .Kind;; .Type;; .Value
>  End With
>Next
>
>.kind come from the Class constants Class.Method Class.Property etc
>
>Respects
>BruceS

~~~Brian

Follow-Ups:
Re: Is there a way to tell if a class symbol is a variable, method etcBruce Steers <bsteers4@xxxxxxxxx>