| || |
String from clipboard is longer than expected
Odd problem. Have a script where I get the text in a cell of a grid then call a menu option in the program that copies text to the buffer.
I use the following code to pull the text from the buffer:
Set cb = CreateObject("Mercury.Clipboard")
sCopiedText = Trim(cb.GetText)
I added trim because even though in the debugger I see two equal strings, Len reports that the text coming from the buffer is 5 long, not 3 as expected.
Anyone have ANY ideas? I am thinking something multi-byte related but I have no idea how to deal with it.
Re: String from clipboard is longer than expected
Figured it out for anyone who may need to know later - they append vbCR/vbLF to the end of each item in the buffer.