[Gambas-user] Problem with String[]

Dag JNJ gambas at cd-bahia.com
Thu Nov 17 19:25:41 CET 2022


Hi all,
I have defined this:

P/ublic arorder As New String[]//
//Public arorderb As New String[]//
/
and make this in a subroutine:

/    arorder.Add(fld)//
//    arorderb.Add(ada)

///
/fld/ contains a field name, /ada/ = "ASC"

the first assignment with /aroder/ succeeds, the second with /arorderb/ 
makes an error : null object
I can't see any difference between these objects, and they are only 
changed in  this routine (so far).
I am thankful for any help, allt he best, Dag JNJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221117/8b1f4c6d/attachment.htm>


More information about the User mailing list