[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: Gianluigi <gradobag@xxxxxxxxxxx>
- Date: Mon, 19 Jan 2026 15:30:10 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Il 19/01/26 14:56, Claus Dietrich ha scritto:
Am 19.01.26 um 14:27 schrieb Lee:On 1/19/26 6:05 AM, Claus Dietrich wrote:According to the documentation clipboard strings containing URLs are not returned as the original strings any longer since V3.18.I think you misinterpreted what the documentation says. That note is referring to a format of "text/uri-list" which would be a list of URIs not a single URL as a string.The format of "https://www.gambas-buch.de/" is "text/plain" and Clipboard.Paste() works as expected here.[System] Gambas=3.21.1 Platform=x11 Desktop=KDE [Libraries] QT6=libQt6Core.so.6.10.1Try the attached mini demo. Copy the URL of the upper TextArea via the context menu and paste it through the button into the below TextArea, were you should find something very different than the URL.As Bruce said, it depends on the source. The documentation doesn't seem to cover the complexity of this subject and I have to admit that I still don't have the full picture.Best regards Claus
Hi Claus, I probably didn't understand And if you do this: [code]Public Sub Form_Open() TextArea1.Text = "https://www.gambas-buch.de" End Public Sub Button1_Click() If Clipboard.Type = Clipboard.Text Then Clipboard.Copy(TextArea1.Text, "text/html") ' Clipboard.Copy(TextArea1.Text, "text/plain") TextArea2.Text = Clipboard.Paste() Endif End[/code] With Best Regards Gianluigi
| Re: Problem with Strings in the Clipboard | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Problem with Strings in the Clipboard | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: Problem with Strings in the Clipboard | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: Problem with Strings in the Clipboard | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |