Re: [Gambas-user] Recursion does not work

2010-01-21 Thread Benoît Minisini
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

Re: [Gambas-user] Recursion does not work

2010-01-21 Thread Matteo Pasotti
Hi, try adding parentheses to Copy sArray.Copy() -- Matteo Demosthenes Koptsis ha scritto: 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()

Re: [Gambas-user] Recursion does not work

2010-01-21 Thread Demosthenes Koptsis
Tank u so much!!! it finally works! 2010/1/21 Benoît Minisini gam...@users.sourceforge.net 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