Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel
By Captain C | Wednesday, 30 September 2009 09:00 | 0 Comments
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.

Labels: , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home

Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel