[Gambas-user] Array for File class?
Jussi Lahtinen
jussi.lahtinen at ...626...
Thu Jan 31 21:05:58 CET 2013
PUBLIC hFile AS File[100]
---->
PUBLIC hFile AS New File[100]
Jussi
On Thu, Jan 31, 2013 at 9:58 PM, steveNewbie <steve32942000 at ...43...>wrote:
> In the application I am working on I have a need to write various outputs
> to
> multiple files. Gambas does not allow me to create an array of File class
> to store multiple pointers to the Files once they are created. Is there a
> way to over come this?
>
> I have some code below.
>
> PUBLIC hFile AS File[100] (DOES NOT COMPUTE)
>
> PUBLIC SUB CreateOutFiles()
> DIM J As Integer
>
> FOR J = 1 to 50
> hFile[J] = OPEN (fileName ) FOR CREATE (DOES NOT COMPUTE)
> NEXT
> "
> END
>
> I have a separate function that writes to these files later in the code do
> I
> need a reference to the hFile[J].
>
> Thanks,
> Steve
>
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/Array-for-File-class-tp40881.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list