I am currently working with Servoy 4.0 (pre-release). I want to copy the text returned from a calculation to the clipboard, so that I can then paste it somewhere else. The text I want to copy is actually an address, which is spread across several lines.
I have seen a method named ‘getSelectedText()’. However, I get the impression that this only designed to work when text has actually been selected in a form element. I really need to get the text without it being put anywhere before hand. I just want to take the text returned from the calculation and put it straight onto the clipboard. Is there any way of doing this??
Also, as I said above, the text I want to copy is an address, which is spread across several lines. I am currently building my address string with HTML. This seems to give me a problem. Basically when I copy the address from a Servoy label and paste it to another application, all the text comes out on a single line. Therefore, is there another way of doing this (maybe without HTML), where I can get the address spread across multiple lines as required??
Any help would be greatly appreciated.
Thanks in advance
Craig