[Solved] How to Declared a Array in Gambas
Posted
#1
(In Topic #683)
Enthusiast

I was wondering if someone could advice me on the following issues
I have declared
Code
Public QuickTenderName(7) As String = Null
Public QuickTenderValue(7) As String = Null
But when I run the code I get a Error saying Missing As (am I doing something wrong?)
Posted
Enthusiast

should work … maybe better:
Posted
Regular

Similarly with a local variable:
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
Guru

I use the following so that I can use '.Add()' to fill the array: -
or for arrays declared at inception: -
Note that the word Public is only needed if you intend to call this variable from another class.
Forum tip: - When adding code use the gb button as it will format the Gambas code as above.
Posted
Enthusiast

1 guest and 0 members have just viewed this.


