[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
[Thread Prev] | [Thread Next]
- Subject: Re: Is there a way to tell if a class symbol is a variable, method etc
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Mon, 12 Oct 2026 11:56:30 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
You're welcome :) I've just added another link to the wiki Symbols.class page on the Class.Symbols page as the only link to it was pretty easy to miss. It only existed on the _get help for Class.class , the bit that says "This class acts like a read-only <https://gambaswiki.org/wiki/comp/gb/class/_get> array." So i added a "for more details on Symbols see blah blah" bit to Class.Symbols page so others will hopefully find it more easily :) Respects BruceS On Mon, 12 Oct 2026 at 01:27, brian <brian@xxxxxxxxxxxxxxxx> wrote: > 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 >
| Is there a way to tell if a class symbol is a variable, method etc | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: Is there a way to tell if a class symbol is a variable, method etc | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: Is there a way to tell if a class symbol is a variable, method etc | brian <brian@xxxxxxxxxxxxxxxx> |