[Gambas-user] Set/GetProperty/Find Method feature request
Bruce
adamnt42 at gmail.com
Sun May 24 01:19:46 CEST 2020
On 24/5/20 4:44 am, Peter Bauer wrote:
> Query all Properties of a GUI Object, here a Textarea again:
> I only would need the Properties, not all symbols. Does not work as
> expected.
>
> For Each string$ In cls.Symbols
> Print "\nTRY: "; count; " ";
> If Not objname Then Print #rsock, "\nTRY: "; clsname; " "; count;
> " ";
> Try result = Object.GetProperty(oo, string$)
> If result Not Begins ":" 'is an event !
> Print "Symbol: "; string$; " Value: "; result; "";
> If Not objname Then Print #rsock, "Symbol: "; string$;
> " Value: "; result; "";
> Endif
> If Error Then
> Print " Error: "; Error.code; " "; Error.Text; " ";
> Print #rsock, " Error: "; Error.code; " "; Error.Text; " ";
> Endif
> count += 1
> Next
> Print #rsock, "\n"
> End
>
TRY/IF Error cant have code in between.
More information about the User
mailing list