Copy word from textbox under cursor (1 Viewer)

CoffeeLover

New member
Local time
Today, 00:34
Joined
Aug 5, 2015
Messages
6
Hello,

I have a form with a textbox. The text box contains comments about a product. The comments contain examples like..
blahhahah 675439 ahahjhshhsh 987654 dssjdsjgjds

The 6 digit numbers represent tag numbers.

My boss has asked me to find a way to:
Click a 'tag number' from the textbox or simply put the cursor point in the middle of the numbers.
Then click a button that will then copy the set of numbers into a textbox on the same form.

Basically removing the process of selecting the numbers, and copy and paste.
this will hopefully allow us to be more efficient in our meetings.


Any ideas or help will be much appreciated.


Thank you!!!!!!!!!!
 

spikepl

Eledittingent Beliped
Local time
Today, 09:34
Joined
Nov 3, 2010
Messages
6,142
copy the set of numbers into a textbox

do you mean all tag numbers in text box need to end up in one and the same textbox, separated by comma or what?

Also, do you have other numbers than 6-digits? Instead of a person having to do something to each, code could extract all 6-digit numbers
 
Last edited:

BlueIshDan

☠
Local time
Today, 04:34
Joined
May 15, 2014
Messages
1,122
From what I can tell, if you wish to look into refactoring your design for ease of mind in the future.

Look into splitting these values by ' ' and storing them in a list control with multi select enabled.

Once that is done, you'll be able to code it so, like in most forms, you're able to select the ones you wish to transfer over by selecting them and pressing one button.

This is an easier design for both the user and developer.
 

CoffeeLover

New member
Local time
Today, 00:34
Joined
Aug 5, 2015
Messages
6
i only want one set of numbers. The end result will be to click a single tag number, save it, and then pull up the tags data from a separate database.

This is supposed to be Similar to a hyperlink.
 

spikepl

Eledittingent Beliped
Local time
Today, 09:34
Joined
Nov 3, 2010
Messages
6,142
You need to exercise some care in wording. "a set" is normally more than one. So which is it?

Also, what is the format of the textbox containing the original: Rich text or plain text?
 

CoffeeLover

New member
Local time
Today, 00:34
Joined
Aug 5, 2015
Messages
6
Referring to the 'set' of 6 numbers. I don't know how more clearly I can say it.
And you need to excersise some care in your tone.
 

spikepl

Eledittingent Beliped
Local time
Today, 09:34
Joined
Nov 3, 2010
Messages
6,142
This is not exactly a site for primadonnas, so sit on that urge till it passes.

If you are imprecise then work is wasted. And now you've confounded the issue totally. One number of 6 digits or a set of 6 numbers?
 

CoffeeLover

New member
Local time
Today, 00:34
Joined
Aug 5, 2015
Messages
6
A tag number is a set of six numbers.
Set meaning a grouping.
Note that I didn't say sets.
In my initial post I said I wanted 1 tag number.
You replied asking if I wanted All tag numbers.
I do not.
 

Users who are viewing this thread

Top Bottom