×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to view contents of a string

How to view contents of a string

How to view contents of a string

(OP)
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

RE: How to view contents of a string

hi,

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

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: How to view contents of a string

(OP)
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

RE: How to view contents of a string

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,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: How to view contents of a string

(OP)
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

RE: How to view contents of a string

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,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: How to view contents of a string

(OP)
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

RE: How to view contents of a string

Please share you solution for the benefit of other members.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: How to view contents of a string

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close