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 - "Type mismatch: wanted control, got integer
> instead"
>
> Wheras just:-
>       FFormName.ShowModal()
> Works OK
>
> Any help would be appreciated
> Gambas3.5.3
>
>

Form constructor already takes an optional argument, its parent.

You must do: New FFormName(Null, 1019)

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to