On 7 apr 2006, at 15.02, Vincent Kroll wrote:
Hi,
I've made some other tests. My calculations are working correct. Im
using, how ever, the function me.CharPosAtLineNum( InLineNumber).
The InLineNumber is well known. So if the InLineNumber gots a in my
case value of 2340 ( sometimes more ) you got suddenly a wrong
character position, beginning to count up again at position 1.
You can make a simple test to watch this behavior. In a window put
an editfield multiline is true, a second standard editfield, in
which later you will type a valid line number of the dropped text
in the first multilined editfield and a button in this window too,
for your testing-code like this:
MsgBox Str( EditField1.CharPosAtLineNum( Val( EditField2.text)))
Try some different values, you will see the problem. So, the
problem is NOT the StyledText, it's CharPosAtLineNum. Do not click
into the editfield, which contains the text. If you do so, some
strange things are happening to your results, while getting the
value of character position. A very buggy thing. Mpfff ...
surprise, surprise, surprise ...
Yes I am very surprised, why you not show or at least tell us what/
how you are doing...
Sven E
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>