[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: Sun, 11 Oct 2026 23:05:52 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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
| Re: Is there a way to tell if a class symbol is a variable, method etc | brian <brian@xxxxxxxxxxxxxxxx> |
| Is there a way to tell if a class symbol is a variable, method etc | Brian G <brian@xxxxxxxxxxxxxxxx> |