On Thu, 31 Jan 2013, steveNewbie wrote: > PUBLIC hFile AS NEW File[100] (Now COMPUTEs) > > but > > hFile[J] = OPEN (fileName ) FOR CREATE (Still DOES NOT COMPUTE) > > I get error "Class 'File' is not creatable". I tried changing the > declaration to Stream with same error.
Why do you want to use a fixed-size array in the first place? I would suggest something like: --8<--------------- 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) 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