[Gambas-user] array of string

Leo Barnhoorn leo.barnhoorn at ...246...
Tue Jan 6 04:38:46 CET 2004


Hallo Olivier,

Just one example :

PRIVATE aConfig AS String[]

PRIVATE FUNCTION LoadConfigFile() AS Boolean
  DIM ConfFile AS File
  DIM sLine AS String
  DIM iTeller AS Integer
    
  aConfig.Resize(4)
    
  OPEN Application.Path &/ "MagicBBS.conf" FOR READ AS #ConfFile
  WHILE NOT Eof(ConfFile)
    LINE INPUT #ConfFile, sLine
    IF Left$(sLine, 1) <> "#" THEN
      aConfig[iTeller] = sLine
      INC iTeller
    ENDIF                    
  WEND    
  CLOSE #ConfFile
FINALLY
  RETURN TRUE
CATCH
  RETURN FALSE    
END

I hope this will help you.

Regards,
Leo Barnhoorn

On Monday 05 January 2004 09:10, Olivier Coquet wrote:
> somebody can help me to use array of string please?
>
> How ca i create it??
>
> how can i use it??
>
> thanks
> regards
> olivier
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> 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