Forum > WinCE

tmemo behaviour on wince

(1/1)

zariq:
Hi everyone,

after finishing a small program for windows mobile I noticed an issue with the memo component. If you delete some letters from a line and then do a statement like  "variable := memo1.lines[index]",
the variable usually contains an extra letter, usually the last one deleted. If the line contains two or less characters then the variable contains an extra letter whether anything is deleted or not. It behaves like this on the windows mobile emulator and on my mobile which is an xda orbit with windows mobile 6 professional. I did a test program just to make sure  the program wasn't messing with the strings. The test program contained just that one assignment statement, but same results.

This is only happening with  wince, everything is fine in windows xp. allthough it happens on the emulator and the phone, it is a lot worse on a real device. On the phone contents of the memo get more garbled with each save and load. I have tried different string types for the variable thinking it might be a conversion problem but no luck.

I have tried the test program with lazarus 0.9.28.2 fpc 2.4.0 and lazarus 0.9.29 fpc 2.4.1. Could somebody please point out what I'm doing wrong.

Thank you.

Zariq

felipemdc:
Please report this bug in the bug tracker.

Navigation

[0] Message Index

Go to full version