[Gambas-user] A bug or just not understanding

Benoit Minisini gambas at ...1...
Tue Mar 29 10:37:17 CEST 2005


On Friday 25 March 2005 22:36, Jim Ward wrote:
> It dawned on me how to pass data from the second from back to the
> first. (Just trying to over think things by letting object bother me.
> *duh*) Any way the following:
>
> STATIC PUBLIC FUNCTION Run(OPTIONAL dCurDate AS Date = Now()) AS Date
>
> Give me an error message which says: Missing AS
>
> When I change it to:
>
> STATIC PUBLIC FUNCTION Run(OPTIONAL dCurDate AS String = "") AS Date
>
> Everything works fine. 

Optional arguments only accept constants at the moment...

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list