How can I do this?
If I want to use 1 module and its forms consist of reusable panels, wich I change the parent....How to refer to a module using a string variable, in or der to callback a public sub from that module, commom to all modules...
If there's not yet a Keyword for it, it probably would be a good time to add a "Module(string)" keyword...
In my taxi app i use "Shifts.frmShifts" and that works where code requires the form in the Shifts module. I have a panel on frmShifts that I use on 2 other forms. Here is a menu click sub that changes the parent of the panel then runs a sub in Utils that sets up the data on the panel and finally brings it to the front and makes it visible.
Sub mnuShiftStatsEdit_Click
flibFareEdit.ChangeParent("shifts.pnlShiftStats","frmFareEdit")
utils.CalcShiftStats
shifts.pnlShiftStats.Visible=True
shifts.pnlShiftStats.BringToFront
End Sub