On Thu, 31 Jan 2013, steveNewbie wrote: > I tried the method below without success. I am still getting "Class 'File' > is not creatable" error. I might have to resort to creating 50 separate > File objects to get through this for now and clean up later. > > Dim aFiles As New File[] > Dim hFile As File > Dim J As Integer > > For J = 0 To 50 > hFile = Open sPath For Read > aFiles.Add(hFile) (For some reason, Add is not a > method under this class!) > Next >
I tried the code before sending it. It worked - I read from the files I created. Maybe your Gambas version is not recent enough? Anyway, the Object[] class should at least work in such cases: --8<--------------- Dim aFiles As New Object[] Dim hFile As File Dim J As Integer For J = 0 To 50 hFile = Open sPath For Read aFiles.Add(hFile) Next --8<--------------- Regards, Tobi ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user