I cannot reproduce this problem.
I created a new action, placed this code in OnUpdate; it works fine.
However,
1) There is already TrvActionTableSplit available
2) If you want to create a table-related actions, you should use GetCurrentItemEx to determine if the current item is a table (your code works correctly if the caret is to the left/right side of the table, or if several table cells are selected; however, if the caret is inside a table cell, the CurItemStyle returns the style of the item inside this table)
Create Action Event To Split Table
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: