[Gambas-user] Calling Function for Array List Forms

Hasan Merkit hasanmerkit at outlook.com
Wed May 12 13:57:02 CEST 2021


I want to changing a Form variable to Form Array (Form[])




Private FormForThemeTimer As Form[]
Public Sub Do(FormName As Form)

    If Not FormName = Null Then
        FormForThemeTimer.Add(FormName)
    Endif

If Theme_DarkMode Then
       Forms_PaintDark(FormForThemeTimer)
Else
        Forms_PaintDefault(FormForThemeTimer)
End If

End



I want my app do this for example:
FormForThemeTimer = [form1,form2,form3]
If Theme_DarkMode Then
       Forms_PaintDark(form1)
       Forms_PaintDark(form2)
       Forms_PaintDark(form3)
Else
        Forms_PaintDefault(form1)
        Forms_PaintDefault(form2)
        Forms_PaintDefault(form3)
End If

How?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210512/e7b4c152/attachment.htm>


More information about the User mailing list