i copy Filename from App to Clipboard
later i paste from Cliboard back to App and want "goto" File
but it does not work
![Shocked :shock:](./images/smilies/icon_eek.gif)
paste Filename into Notepad
mark Filename "in" Notepad and copy back to Clipboard
now it work
![Very Happy :D](./images/smilies/icon_biggrin.gif)
---
than i had a look into Logfile and found
where are E and \r\n come from28.02.2023 07:46:42: COPYTOCLIPBOARD( 3386 ) cText = E"C:\fwh\0\LISTVIEW\TGRID.BAK\r\n "
28.02.2023 07:47:08: TEXTFROMCLIPBOARD( 3400 ) cText = E"C:\fwh\0\LISTVIEW\TGRID.BAK\r\n"
28.02.2023 07:47:25: TEXTFROMCLIPBOARD( 3400 ) cText = "C:\fwh\0\LISTVIEW\TGRID.BAK"
![Question :?:](./images/smilies/icon_question.gif)
how can i get rid of it
![Question :?:](./images/smilies/icon_question.gif)
---
Code: Select all | Expand
FUNCTION CopyToClipboard( cText )
LOCAL oClip := TClipBoard() :New()
IF oClip:Open()
oClip:SetText( cText )
* oClip:SetWideText( cText )
oClip:Close()
ENDIF
oClip:End()
RETURN nil
Code: Select all | Expand
FUNCTION TextFromClipboard()
LOCAL cText := ""
LOCAL oClip := TClipBoard() :New()
IF oClip:Open()
cText := oClip:GetText()
* cText := oClip:GetUnicodeText()
oClip:Close()
ENDIF
oClip:End()
RETURN cText