Re: [Gambas-user] Problem with OPTIONAL method declaration

2015-02-05 Thread bill-lancaster
Thank you both - I'm learning! -- View this message in context: http://gambas.8142.n7.nabble.com/Problem-with-OPTIONAL-method-declaration-tp50515p50541.html Sent from the gambas-user mailing list archive at Nabble.com. ---

Re: [Gambas-user] Problem with OPTIONAL method declaration

2015-02-04 Thread Gian
Ciao Gianluigi -- View this message in context: http://gambas.8142.n7.nabble.com/Problem-with-OPTIONAL-method-declaration-tp50515p50522.html Sent from the gambas-user mailing list archive at Nabble.com. ---

Re: [Gambas-user] Problem with OPTIONAL method declaration

2015-02-04 Thread Tobias Boege
On Wed, 04 Feb 2015, bill-lancaster wrote: > 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) Assuming this should read: hForm = New FFormName(1

Re: [Gambas-user] Problem with OPTIONAL method declaration

2015-02-04 Thread Benoît Minisini
Le 04/02/2015 15:18, bill-lancaster a écrit : > 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 -

[Gambas-user] Problem with OPTIONAL method declaration

2015-02-04 Thread bill-lancaster
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:-