This post follows my previous post Capture BCTextEngine error text where @Erel advised TextEngine.TagParser.ErrorString would provide details of the error encountered by the parser so I could provide feedback to the user via a message box.
However I have found that if I purposely delete a tag to create an error which displays the message box as expected and then reinsert the tag in the txtBBCode textbox, it continues to throw the error.
The attached project demonstrates that.
Click on the Test Text button to display the BBCode:
Delete the b tag and click the Test Text button again to see the error message box:
Reinsert the b to restore it to its original state and click the Test Text button again. Unexpectedly the error message box appears:
It seems the parser needs to be reset or re-initialised to clear the error, but how?
Thanks in anticipation of any assistance.
However I have found that if I purposely delete a tag to create an error which displays the message box as expected and then reinsert the tag in the txtBBCode textbox, it continues to throw the error.
The attached project demonstrates that.
Click on the Test Text button to display the BBCode:
Delete the b tag and click the Test Text button again to see the error message box:
Reinsert the b to restore it to its original state and click the Test Text button again. Unexpectedly the error message box appears:
It seems the parser needs to be reset or re-initialised to clear the error, but how?
Thanks in anticipation of any assistance.