[Gambas-user] Calling Function for Array List Forms

Bruce Steers bsteers4 at gmail.com
Thu May 13 02:18:01 CEST 2021


>
>
> if FormForThemeTimer is a Form[] Array of [Form1, Form2, Form3]
> Then this...
>
> If Theme_DarkMode Then Forms_PaintDark(FormForThemeTimer) Else
> Forms_PaintDefault(FormForThemeTimer)
>
> Public Sub PaintDark(FormArray As Form[])
> For Each hForm As Form In FormArray
>   DoSomethingTo(hForm)
> Next
> End
>
> hope that helps.
>

Oops , sorry of course that should be..
*Public Sub Forms_PaintDark(FormArray As Form[])*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210513/6896e77e/attachment.htm>


More information about the User mailing list