Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to move data to clipboard once it has been obtained then manipulated using GetString?

Status
Not open for further replies.

tedb13

Technical User
Jan 20, 2011
41
CA
Hi, I need to take data I have retrieved then manipulated using the GetString function and enter it into Clipboard to be manually pasted afterwards without using a text file. Does anyone know if this is possible?

It's always better to ask stupid questions; stupid questions have been known to reduce the frequency of stupid mistakes. :eek:)
 
hi,

Just wondering...

1. Data is 'retrieved,' which implies that the data from the screen object is now in a variable.

2. 'then manipulated using the GetString function' So how is this possible, as the GetString function gets strings from the screen object?

I'm trying to get a clear picture of what the process is, so would you please explain your process to me?

Secondly, please explain WHY the result needs to be in the clipboard.

Please answer both questions.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Hi Skip. I didn't mean to be vague. I am using "String=MyTerminal.GetString(12,26,12)" to copy a few items. For example, a ph# (987)654-3210. I then remove all the non-numeric characters; It is my hope that there is a way to put the data to the clipboard so that when I do the Ctrl-v it pastes it like so, 9876543210. For some reason I could never get the CopyAppend function to work, so I have had to resort to another method. Normally I would select then copy the number, after that, I manually use the backspace to remove the characters as the dialer we use was poorly programmed and generates an error if the characters are left there.

It's always better to ask stupid questions; stupid questions have been known to reduce the frequency of stupid mistakes. :eek:)
 
part of the problem is that you are not using technically correct words -- VERY important when defining any kind of a specification.

GetString does not COPY ANYTHING! It it used to ASSIGN a value to a variable.

There is a COPY method that applies to the Screen Object.

Where do you see APPEND in Extra Basic HELP? How did you TRY to use the Copy/Append method?

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Skip. Forgive my poor use of programming jargon. You're right, the GetString function is used to assign a value to a variable, as in my example it assigns the string value "(987)654-3210" to the variable String. Unfortunately, I no longer have access to Extra Basic Help as we've upgraded to Attachmate Reflection. Anyway, I was merely asking if the value in the variable can be placed in the clipboard. I will assume by your question about whether I have read up on copy/append that your answer is no. There is another way I've thought to get around this problem, I was just hoping there would be a simpler solution.

Yes I did read about Copy/Append, but for some reason it never worked. It would never generate an error, but it wouldn't work either.

Thanks for your answer.

It's always better to ask stupid questions; stupid questions have been known to reduce the frequency of stupid mistakes. :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top