I have a form with:- Public Sub _new(Optional iNr As Integer) iStatementNr = iNr End
When the form is opened with:- Dim hForm As FFormName hForm = New FFormName1019) hForm.ShowModal I get this error message - "Type mismatch: wanted control, got integer instead" Wheras just:- FFormName.ShowModal() Works OK Any help would be appreciated Gambas3.5.3 -- View this message in context: http://gambas.8142.n7.nabble.com/Problem-with-OPTIONAL-method-declaration-tp50515.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user