Discussion:
[Gambas-user] how to trap show modal close response?
PICCORO McKAY Lenz
2017-07-10 20:02:51 UTC
Permalink
i have a simple module:


Public Sub Main()

FLogin.ShowModal

End

and on the FLogin.class i have a simple override of a buton event:

Public Sub closebtn_Click()

Me.Close(33)

End

how can i trap in the MMain module in main the reponse of the FLogin
without explicit call to moduleo inside the FLogin form.. ?



Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
Jussi Lahtinen
2017-07-10 20:19:31 UTC
Permalink
Public Sub Main()

Dim ii As Integer = FLogin.ShowModal()

End

''Now the ii contains the output.

PS. Are you sure that is override of something?


Jussi
Post by PICCORO McKAY Lenz
Public Sub Main()
FLogin.ShowModal
End
Public Sub closebtn_Click()
Me.Close(33)
End
how can i trap in the MMain module in main the reponse of the FLogin
without explicit call to moduleo inside the FLogin form.. ?
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
https://lists.sourceforge.net/lists/listinfo/gambas-user
PICCORO McKAY Lenz
2017-07-10 21:01:52 UTC
Permalink
ah, the problem was i write:

"FLogin.ShowModal"

and due its a function must be:

"FLogin.ShowModal()"

thanks Jussi..

why this heck are not well documented in the wiki?

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
Post by PICCORO McKAY Lenz
Public Sub Main()
Dim ii As Integer = FLogin.ShowModal()
End
''Now the ii contains the output.
PS. Are you sure that is override of something?
Jussi
On Mon, Jul 10, 2017 at 11:02 PM, PICCORO McKAY Lenz <
Post by PICCORO McKAY Lenz
Public Sub Main()
FLogin.ShowModal
End
Public Sub closebtn_Click()
Me.Close(33)
End
how can i trap in the MMain module in main the reponse of the FLogin
without explicit call to moduleo inside the FLogin form.. ?
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
https://lists.sourceforge.net/lists/listinfo/gambas-user
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
https://lists.sourceforge.net/lists/listinfo/gambas-user
Loading...