[Gambas-user] Recursion does not work
Demosthenes Koptsis
demosthenesk at ...626...
Thu Jan 21 17:13:20 CET 2010
Tank u so much!!!
it finally works!
2010/1/21 Benoît Minisini <gambas at ...1...>
> > if i understood well i did this
> >
> > declare Function as
> >
> > PRIVATE FUNCTION anag(iStart AS Integer, iLen AS Integer, sArray AS
> > String[]) 'vars are ByVal by default
> >
> > and from
> >
> > PUBLIC SUB Button1_Click()
> > ...
> > anag(0, iLen, sArray.Copy) 'Make anagrams
> > ....
> > END
> >
> > but i get error "Type mismatch, wanted String[], get Function instead"
> >
> > how to copy array?
> >
>
> sArray.Copy()
>
> Parentheses are mandatory if you call a function (not when calling a
> procedure).
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Γεια χαρα σε όλους!!!
Regards,
Demosthenes Koptsis
More information about the User
mailing list