Hello,
We got a bug report form one of our users. He says: "when using <
Ctrl+C > to copy some text from a GUI Windows application, and using <
Ctrl+V > to paste the text in a GET field of a console application,
after READ the GET field will contain the string followed by a CHR(
0)"
This is a reduced sample that shows this bug:
procedure main
local i, ch
cls
tmpitem = space(16)
@ 3, 3 get tmpitem picture "@!S10"
read
? tmpitem
? len(tmpitem)
? "------before alltrim"
for i:=1 to 16
ch:=tmpitem[i]
if ch<chr(32) .or.ch>126
? str(i)+" "+str(asc(ch))
endif
next
? "------after alltrim"
tmpitem:=alltrim(tmpitem)
? len(tmpitem)
wait "ok"
quit
Patrick
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers