[Gambas-user] Little Array problem

R Onstenk ronstk at ...239...
Sat Sep 13 16:26:41 CEST 2003


in my code i have:

'global
PRIVATE argdat as string[]
private argset as variant[]

PUBLIC SUB MyInit()
 argdat = ["","","","","yes",""] 'first column

 for i=0 to iColumns
   argset.add(argdat,i)
   argdat = ["","","","","no",""] 'second to last
END

The problem is the first element in the argdat array.
It must be a "" empty string. The MyInit set a matrix
of strings that are handled by code to contain selected
data. The offset in the argdat is the index for values 
ranges that can be used.
With this initial value I get 'The program has returned the value: 1'


---
Ron




More information about the User mailing list