B4J Question How to copy plain text to Clipboard ?

GMan

Well-Known Member
Licensed User
Longtime User
Is there the choice to copy some plain text with a Click to the Clipboard ?

Regards
g-Man
 

GMan

Well-Known Member
Licensed User
Longtime User
Thx so far - i tried that
B4X:
fx.Clipboard.SetString(B4XFloatTextField1.Text)
but with no effects
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
OK, i solved in in another way:

B4X:
    Textarea.Text = File.ReadString(File.DirAssets, "LCDScreen_Sketch.txt")
    fx.Clipboard.SetString(Textarea.Text)
 
Upvote 0

inakigarm

Well-Known Member
Licensed User
Longtime User
Thx so far - i tried that
B4X:
fx.Clipboard.SetString(B4XFloatTextField1.Text)
but with no effects
Works for me... clipboard.gif
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
Yo, don't know what was wrong here.
But works now - thank you for your tips :)
 
Upvote 0
Top