Hi Benoit,
It's a think i've seen since many time..
'Class Tmenu
Public sub _New (sText as String, sLink as String, OPTIONAL hParent as
Tmenu, OPTIONAL aAutoSelect as String[])
Text = sText
{Link} = sLink
IF aAutoSections.Exist(Request["section"]) THEN ME.IsSelected = TRUE
IF NOT IsNull(hParent) THEN hParent.Children.Add(ME)
End
Well, the problem is i can't call this by this way
Dim hMenu as Tmenu
hMenu = NEW Tmenu("Sommaire", "/",, ["index"])
I need in fact write this :
hMenu = NEW Tmenu("Sommaire", "/", NULL, ["index"])
in VB it is possible and the both are simple to read i think.
Why the compiler does not take care about that ?
Best regards,
Fabien Bodard
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user