[1.3.b59] macro function to return num of entries in table

If you have an idea for a new feature, please discuss it in the main MapTool forum first, then post a summary of the discussion here. Use the first Sticky as a template.

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

[1.3.b59] macro function to return num of entries in table

Post by Azhrei »

Easy one: add a macro function (perhaps getTableData()) that returns the number of entries in the table.

http://forums.rptools.net/viewtopic.php ... 30#p124423

The reason the function name is rather generic is to allow this function to take a parameter that specifies what kind of data to return. Possible return values include number of table entries, picture used to represent the table (in the table panel), whether the table is player viewable, number of table entries with/without images/text, and possibly more. (I'm sure the developer who makes this change will see the Java object that represents a Table and have ideas for other attributes.)

Post Reply

Return to “Feature Requests”