[Gambas-user] New treeview is getting a little bit overexcited

Benoît Minisini gambas at ...1...
Sun Nov 4 14:35:16 CET 2012


Le 04/11/2012 11:54, Bruce a écrit :
> This used to work
>          tvwJockeys.Add(Subst("R&1#&2", cs.RaceNo, cs.BP),
>          Subst("(R&2 ... #&3) &1", cs.HorseName, cs.RaceNo, cs.TabNo),,
>          cs.Jockey)
>
> OK, I'll simplify :-)
>
>          tvwX.Add(somekey, sometext,,parent)
>
> no Picture, no After.
>
> Now I get a "null object" error.  I think its due to the empty parameter
> [Optional Picture as Picture]?  ... because every other cs.something is
> valid.
>
 > ...
 >

tvwX.Add(somekey, sometext,,parent)

is perfectly valid.

So you must give me more information about where you get a null error. 
Ensure that cs is not null before calling tvwJockeys.Add(), to find what 
is null exactly.

Regards,

-- 
Benoît Minisini




More information about the User mailing list