[Gambas-user] Dinamic Arrays in Gambas

Stefano Palmeri rospolosco at ...152...
Thu Jul 17 21:54:33 CEST 2008


Il giovedì 17 luglio 2008 15:34:10 David Villalobos Cambronero ha scritto:
> Hi all,
>
> How can I get a dinamic array with more than one dimension.
>
> I my program I need to create at execution time a dinamic array, in
> example:
>
> 1 - I will ask the user how many rows.
> 2 - I will ask the user how many columns.
> 3 - With this info I need to create an array.
>
> I know there is String[], Integer[], but how can I get more dimensions.
>
> Best regards
>
> David
>

This a bidimensional 10x10 array of strings.

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  DIM arsMyStrings AS String[]
  
  arsMyStrings = NEW String[10, 10]
  
  arsMyStrings[0, 0] = "hello"
  
  PRINT arsMyStrings[0, 0]

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Bye,

Stefano




>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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