[Gambas-user] Problem with String[]

T Lee Davidson t.lee.davidson at gmail.com
Fri Nov 18 17:51:04 CET 2022


On 11/17/22 13:25, Dag JNJ wrote:
> 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

It is quite difficult to determine what may be causing that without seeing the full code. Perhaps somewhere 'arorderb' is 
getting nullified. Can you pare it down to a small project, that reproduces the issue, that you can share?


-- 
Lee



More information about the User mailing list