Tom Kenney
January 25, 2007, 03:08:09
I'm using V12.0, C++ wrapper derived from the ActiveX Server OCX, and doing MS Word document conversion to ASCII text.
I'm trying to replace a whole table with a replacement string. If I find the starting and ending positions of the table, then use SetSelStart and SetSelLength to set the selection, SetSelText 'beeps' and does not perform the replacement. It also does not return an error or display a dialog with an error. As a test, I can insert my replacement text anywhere except to replace the table.
Is there a way to delete the whole table in one swipe? I've tried TableDeleteLines and TableDeleteColumn to remove the table, but this seems to delete the contents of the table but leave some kind of table markers that interfere with replacement and finding the next table.
TIA.
I'm trying to replace a whole table with a replacement string. If I find the starting and ending positions of the table, then use SetSelStart and SetSelLength to set the selection, SetSelText 'beeps' and does not perform the replacement. It also does not return an error or display a dialog with an error. As a test, I can insert my replacement text anywhere except to replace the table.
Is there a way to delete the whole table in one swipe? I've tried TableDeleteLines and TableDeleteColumn to remove the table, but this seems to delete the contents of the table but leave some kind of table markers that interfere with replacement and finding the next table.
TIA.