EditTable CookBook - Setting TEXT_BY_POS
Published 30 SEP 2009 at 09:00:00AM by Captain C
As documented the TEXT_BY_POS message may be used to retrieve the contents of a nominated cell. What is not documented is the fact that you can use it to update the contents of a cell as well. It's simply a matter of adding an extra parameter containing the data you wish to set.
E.g.
0001 * // Example to show setting cell contents with the 0002 * // TEXT_BY_POS message. 0003 0004 * // Set the contents of cell [3,4] 0005 colNo = 3 0006 rowNo = 4 0007 cellText = "New Cell Data" 0008 0009 call send_Message( @window : ".TABLE_1", | 0010 "TEXT_BY_POS", | 0011 colNo, | 0012 rowNo, | 0013 cellText )
OpenInsight trivia bonus: The EditTable CELLPOS property is a simple wrapper around the TEXT_BY_POS message.