Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window
wiki:FAQ4

FAQ 4

How do I add cells to an already built table?

there is a call in my scripts to get the public interface => interface() in case of the table, there is a wrapper for that calll: getTableInterface so if you send the sprite with the table something like:

put sendSprite(xy, #getTableInterface)

now you get a list of public api calls.

amonst which is:

  • on mInsertRow me, list_newValueList, integer_posIndex, string_tabname
  • on mDeleteRow me, integer_posIndex, integer_toPos, boolean_relativ, string_tabname
  • on mInsertCol me, integer_posIndex, list_colList, list_newValueList, string_tabname
  • on mDeleteCol me, integer_whichCol, string_tabname

These are the handlers which can be used to add or delete rows and columns.

(source:trunk/lingosource/castlib1/TableManager.ls#L275)

A complete list of public api calls with description will be on the PublicApi page.