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.


Will

        tvwX.Add(somekey, sometext, Null, parent) 

work? (I haven't tried.)

Benoit, 
Would you mind giving us a clear picture of optional parameter handling.
I know that somewhere else I have to stick a ",Null," between optional
parameters, can't remember where.

The premise is

        Public Sub Anything ( Optional p1 as thing, Optional p2 as
        thing, .. Optional P3 as thing)
        
Can I call 
Anything(,,Fred)
Anything(Frieda,,Fred)
Anything(Frieda,Finglehoffer)
with impunity?

or will/should I call
Anything(Null,Null,Fred)
Anything(Frieda,Null,Fred)
Anything(Frieda,Finglehoffer)
with impunity?

best regards
Bruce












------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to