×
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!
  • Students Click Here

*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

Jobs

skip the screen

skip the screen

skip the screen

(OP)
Hi
i am a new user . i tried to capture the informaiton with the particular criteria.
but t capture everyhting
here is the code.

[sup]
MyScreen.Moveto 2, 40
NotLastPage = true
If Not MyScreen.Search("END OF REPORT") Is Nothing Then _
NotLastPage = False
Do While MyScreen.Search("END OF REPORT").Value = ""

If Not MyScreen.Search("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<") Is Nothing Then _
NotLastPage = True

If Not MyScreen.Search("END OF REPORT") Is Nothing Then _
NotLastPage = False
NotFirstPage = true
if MyScreen.Search("CIND/CURCODE NOT MATCHED") Is Nothing Then _
FirstPage = False
MyScreen.Sendkeys("")
MyScreen.Moveto 2, 40
MyScreen.WaitHostQuiet (g_hostsettletime)
MyScreen.Putstring ("11" + " ")
MyScreen.SendKeys ("")
MyScreen.WaitHostQuiet (g_hostsettletime)
for i = 14 to 27 ' compare the mastamout and transaction amout start from 14 to 27'
' some screen has empty it needs to skip but it goes every page and check 14 to 27'
Amtcheck1 = Trim(MyScreen.GetString(i, 102, 13))
Amtcheck = Trim(MyScreen.GetString(i, 120, 13))
if Amtcheck1 <> Amtcheck or Amtcheck <> "" and Amtcheck1 = "" then
Print #1, MyScreen.Area(06,34,06,72)
Print #1, " BR ORG ACCT SUB PROD CST PROJECT CIND CPTY CURR ERROR MESSAGE MAST AMT JHST AMT"
Check1 = MyScreen.GetString(08,08,08,5)
Print #1, "For Corporation:"+ Check1
Print #1, MyScreen.Area(i, 2, i, 122)
PRINT #1, ""+Chr$(13) + Chr$(10)+"";
PRINT #1, ""+Chr$(13) + Chr$(10)+"";
pause 1
end if
next i
MyScreen.SendKeys ("")

NotLastPage = true
MyScreen.WaitHostQuiet (g_HostSettleTime)

Loop
[/sup]

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