Creating and reading from arrays
Posted
#1
(In Topic #1341)
Trainee
I need to declare an array as string and then load it up with the variables.
so I could try
Code (gambas)
- arrSyllable.Add[1] = "a"
- ...
So simple as this is, what am I doing wrong?
Dj
Posted
Regular

…and:Homyakchik said
Come to the wiki and Gambas One when something's unclear or just odd.
- http://www.gambas-club.de/index.php
- https://gambas-es.org/
- https://www.gambas.one/classes/
- http://gambaslinux.fr/dcms/
- https://gambaslinux.fr/v2/
- http://89.234.156.109/
- https://www.gambas-it.org/smf/
- http://www.gambas-it.o…i/index.php?...principale
- https://gambas-buch.de/dwen/doku.php
- https://de.wikibooks.org/wiki/Gambas
- http://sologambas.blogspot.com/p/indice.html
- https://jsbsan.blogspot.com/
- http://captainbodgit.b…t.com/search/label/Gambas
- https://pigalore.miraheze.org/wiki/Main_Page
- http://icculus.org/piga/
- http://novatocodegambas.blogspot.com/
- https://gambaswiki.org/wiki/doc/book?nh&l=en
- https://github.com/jsb…plos-del-Curso-De-Gambas3
- https://en.wikibooks.o…i/Programmin...s_from_Zip
- https://wordpress.gamb…/a-book-by-gerry-buzolic/
- https://wordpress.gamb…/2020/04/10/...g-project/
- https://github.com/demosthenesk/the_gambas3_book
- https://www.youtube.co…lts?search_query=Gambas+3
- https://www.youtube.com/watch?v=Gu9sqZZOiR0
- https://gambas.one/playground/
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

Homyakchik said
Homyakchik said
Homyakchik said
Posted
Guru

Maybe something like this is what you need
Any local variables declared with Dim are only visible to the local method.
global variables are declared with Public or Private in the global space (top of file)
Variable contents can be intserted at definition or at runtime in a method.
There are various initiation methods.
For a Form like FMain.class you can use the _new() method or Form_Open()
or initiate it in the classes _new method
Or by adding to a initiated array
Or by adding to a initiated sized array (as you did)
Have fun
1 guest and 0 members have just viewed this.


