In den Zwischenspeicher hinein und wieder heraus zurück
Dieses Programm kopiert mit dem Befehl1 einen Text in den Zwischenspeicher und holt in mit dem Befehl 2 wieder heraus.
Hinter den Befehlsfeldern steht folgender Programmcode:
PUBLIC SUB Button1_Click()
DIM t$ AS String
Clipboard.Clear
' Zwischenablage löschen.
t$ = textarea1.Text
Clipboard.Copy (t$)
'Text in Zwischenablage kopieren.
textarea1.Text = ""
END
PUBLIC SUB Button2_Click()
DIM a$ AS String
'Text aus Zwischenablage holen.
textarea2.Text = Clipboard.Paste ()
END
Kürze Variante :
' Gambas class file
PUBLIC SUB Button1_Click()
Clipboard.Copy (Textarea1.Text)
'Text in Zwischenablage kopieren.
END
PUBLIC SUB Button2_Click()
textarea2.Text = Clipboard.Paste ()
END
Theorie
Clipboard
This class is used for manipulating the system clipboard.
This class is static.
Properties
Format Type
Methods
Clear Copy Paste
Constants
Image None Text
Clipboard (class)
This class is used for manipulating the system clipboard.
You cannot instanciate this class.
Referenced by:
Graphical User Interface Component - gb.qt
Clipboard _(class)_