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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to view contents of a string

Status
Not open for further replies.

smiler44

Technical User
Sep 18, 2009
83
GB
not used to using attachmate extra and am trying to modify a macro written by someone that has left the team.
I need to know what the value of a string is. using visual basic there is something called the immediate window. by tying
?name of string then hitting return it will show the value of the string.
How do i do this with extra?

Thanks smiler44
 
hi,

If you have Excel, I would not think one second about coding in Extra VB.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Skip, can you tell me how to look at the value of a string within extra?.
i have excel but this macro is in extra and all i want to do is modify it.

smiler44
 
What I am suggestion is to run the macro from Excel.

In nearly every instance, you are scraping a screen in order to GET data into an application list Excel, or to PUT data into the screen from an application like Excel.

My druthers would be to drive a Lexus, rather than a Yugo. The Extra editor is rather yugoish, IMNSHO.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
not to worry I have found it, there is an icon or two on the tool bar with glasses, add watch and watch.
add watch opens the equivilent of the immediate window and if you click on the string and then click watch you can see the value.

if extra code will work run from excel i may well give it a go. this would allow me to record a macro with extra and then copy and paste it to excel for something else that required at work

smiler44
 
I have MANY application that scrape screens. I have even written a generic method of defineing the fields on screens in a mapping table for scores of screens. But I NEVER code in Extra! VB, since in each and every instance, I need the data in Excel and/or have data in Excel to use. I like the ride and feel and amenities of a luxury vehicle.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I am modifiying an existing macro written in extra, so it was perhaps qiicker to modify it.
I have solved it now anyway thanks
smiler44
 
Please share you solution for the benefit of other members.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Skip, I kinda have said how to do it on the 7th.
There are two icons on the tool bar of the macro editor, when you hover the mouse over them one says add watch and the other watch. add watch opens the watch window. if you then click on your variable and then click watch when the variable is filled with information the variable name and its contents are displayed in the watch window.

If this is not what you mean i actually solved my code problem by adding two find instructions such as
Dim shoe as string
sendkeys ("find<tab>shoe")
variable = getstring (10, 23, 3)
if variable = "yes" then
sendkeys("s")
sendkeys("<home>")
sendkeys ("CA")
sendkeys ("<enter>")
end if

smiler44
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top