[Gambas-user] Problem with OPTIONAL method declaration

bill-lancaster bill-lancaster at ...2231...
Wed Feb 4 15:18:30 CET 2015


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.




More information about the User mailing list