[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with Strings in the Clipboard
[Thread Prev] | [Thread Next]
- Subject: Re: Problem with Strings in the Clipboard
- From: Claus Dietrich <claus.dietrich@xxxxxxxxxx>
- Date: Mon, 19 Jan 2026 14:28:58 +0100
- To: Gambas MailingList <user@xxxxxxxxxxxxxxxxxxxxxx>
Hi BruceThanks! Your comments helped. I solved it by using Clipboard.Paste("text/plain").
Best regards Claus Am 19.01.26 um 12:39 schrieb Bruce Steers:
Maybe be us a different format.Check out Clipboard.Formats to see if a different format might be used/available.It depends where the he Copy came from. Print Clipboard.Formats.Join("; ") See it's list if formats and maybe try another in the Paste command. Respects BruceSOn Mon, 19 Jan 2026, 11:05 Claus Dietrich, <claus.dietrich@xxxxxxxxxx> wrote:I wanted to access the text of the clipboard but when the string contains a URL (i.e. "https://www.gambas-buch.de") the method Clipboard.Paste() returns something else but not the original string. According to the documentation clipboard strings containing URLs are not returned as the original strings any longer since V3.18. Why has this been changed and how can I access the original URL-string for a simply routine like below? : ... Else If Clipboard.Type = Clipboard.Text Then Print Clipboard.Paste() 'doesn't return the string if it is a URL s = ...... 'How? if left$(s,4) = "http" Then Desktop.Open(s) end if Endif Best regards Claus
| Problem with Strings in the Clipboard | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: Problem with Strings in the Clipboard | Bruce Steers <bsteers4@xxxxxxxxx> |