From: Staffan T. <sta...@gm...> - 2012-11-24 11:12:28
|
Mark, in that case I think the diagram would be more correct like this: >>--insert(--+--------+-,-+-------+-,-+-----+-,-+-----+-,-+--------+---------> +-parent-+ +-after-+ +-txt-+ +-img-+ +-selImg-+ >----------,-+-------+-,-+----------+-,-+----------+------------------------->< +-state-+ +-children-+ +-userData-+ 18.5 addFullSeq uses that convention for the second argument and this seems to be the norm in other documentation that I've become familiar with. RANDOM in the ooRexx xref manual is another example. This convention doesn't leave room for any misunderstandings as is the case now, except that perhaps a clarification in the About This Book section could mention that trailing argument commas can/should be left out. Just my 2p... Staffan On Sat, Nov 24, 2012 at 1:37 AM, Mark Miesfeld <mie...@gm...> wrote: > On Fri, Nov 23, 2012 at 10:38 AM, Staffan Tylen <sta...@gm...>wrote: > >> If I read the documentation for TV insert correctly, there is no need to >> use any commas as placeholders when parameters are left out, is this >> correct? > > > No, that is not correct. If you want to specify the selected image > argument, it is the 5th argument. All arguments are optional, so you can > omit the first 4 arguments, but the selected image argument still has to be > the 5th argument: > > insert( , , , , 7) > > would insert an item with no text for a label as the last child of the > root item with no non-selected icon. The selected image icon for the > inserted item would be at index 7 of the image list. > > Each argument has to be at its proper position in the the argument list. > > > > >>--insert(--+----------+-+---------+-+-------+-+-------+-+----------+---------> > +--parent--+ +-,-after-+ +-,-txt-+ +-,-img-+ +-,-selImg-+ > > > >------------+---------+-+------------+-+------------+------------------------->< > +-,-state-+ +-,-children-+ +-,-userData-+ > > > The way to read the above is that each argument that is below below the > line is optional. But the argument position is fixed. selImg is the 5th > argument. That doesn't change if you omit an argument. > > -- > Mark Miesfeld > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Oorexx-users mailing list > Oor...@li... > https://lists.sourceforge.net/lists/listinfo/oorexx-users > > |