I need a coder to design a work around for a bug of Trichedit component. The bug is that if we use RichEdit->[login to view URL]() to determine the length of the Rich text, it's compiled program would work fine with English Windows.<br><br>
However for Chinese language Windows XP, that very code "RichEdit->[login to view URL]()" will abort the program each and every time.<br><br>
We used [login to view URL]() to bypass the need to use RichEdit->[login to view URL]() if all we want is whether it is bigger than zero. That solved most of the problem.<br><br>
But there are cases when we do need to determine that value "RichEdit->[login to view URL]()" and thus we need to have another way to actually find out that value. <br><br>
We tried RichEdit->SelLength. But the result is the same: perfectly fine with English Windows XP, but it will abort Chinese XP the minute user tries to block some text (using say shift left key to block some text).<br><br>
We need experience coder to help us find a work around, such as using exception handling to find out the true length of the rich text.<br><br>
To test the validity of the codes two sets of codes should be written, one with RichEdit->[login to view URL]() or RichEdit->SelLength, the other using coder's alternative codes. If in every test situation, both codes give identical length, then the codes is approved.