[Gambas-devel] Arguments of inherited constructors

Benoît Minisini gambas at ...1...
Mon Nov 30 21:40:49 CET 2009


> I have this line in my app, and it used to work, but with the new commit it
>  does not:
> 
> $hFBrowser = New FBrowser(Settings["/Browser/Width", $Width],
>  Settings["/Browser/Height", $Height], Settings["/Browser/X", $X],
>  Settings["/Browser/Y", $Y])
> 
> I'm missing something? Or there is new syntax?
> 
>  Regards
> 
> 
> --
> David
> 

You must now pass the optional argument of the Window constructor first:

$hFBrowser = New FBrowser(Null, Settings["/Browser/Width", $Width],
 Settings["/Browser/Height", $Height], Settings["/Browser/X", $X],
 Settings["/Browser/Y", $Y])

Regards,

-- 
Benoît Minisini




More information about the Devel mailing list