LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get "selected text"? from a string

Solved!
Go to solution

If I highlight text in a text string, I would like to be able to copy it to the clipboard.

 

I have already created an event that utilizes the Application reference to "write to clipboard"  now I need to give it the selected text.

 

How do I do that?

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 1 of 7
(4,329 Views)

Hi,

 

Control-C will copy just your selected text to the clipboard but right-clicking on a control and selecting Copy Data will put the text of the whole control into the clipboard.

 

Albert

Message 2 of 7
(4,320 Views)
Solution
Accepted by topic author eximo

Here is a way to do it.

 

Ben64

Message 3 of 7
(4,314 Views)

 


@albertm wrote:

Hi,

 

Control-C will copy just your selected text to the clipboard but right-clicking on a control and selecting Copy Data will put the text of the whole control into the clipboard.

 

Albert


Copy data will put an image of the data on the clipboard, but not the txt, so if your txt exceeds the space of the window you are out of luck

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 4 of 7
(4,301 Views)

thanks ben64; 

sushu;
Certified LabVIEW Developer (CLD);
0 Kudos
Message 5 of 7
(4,179 Views)

@sushu wrote:

thanks ben64; 


Best way to thanks is to give kudos 😉

 

Ben64

0 Kudos
Message 6 of 7
(4,171 Views)

Yes , Cat Happy

sushu;
Certified LabVIEW Developer (CLD);
0 Kudos
Message 7 of 7
(4,165 Views)