shawwallace
Technical User
from vt session i have some records showing in that, i have to grab the thing and print or if it is no records found that also print
how do write the bothe in one.
the below code could anybody modify this
thansk in advance
MyScreen.SENDKEYS "<Home>*<EraseEOF><Tab>UT<Enter>")
MyScreen.WAITFORSTRING("ACCOUNTS")
For i = 6 to 21
Print #1, MyScreen.Area(i,2,i,79);
PRINT #1, ""+Chr$(13) + Chr$(10)+"";
Next
IF InStr(1,UCASE(Myscreen.GETSTRING(24,2,5,)),"NO RECORD/S FOUND") THEN
Print #1, "NO RECORDS FOUND" +Chr$(13) + Chr$(10)+"";
how do write the bothe in one.
the below code could anybody modify this
thansk in advance
MyScreen.SENDKEYS "<Home>*<EraseEOF><Tab>UT<Enter>")
MyScreen.WAITFORSTRING("ACCOUNTS")
For i = 6 to 21
Print #1, MyScreen.Area(i,2,i,79);
PRINT #1, ""+Chr$(13) + Chr$(10)+"";
Next
IF InStr(1,UCASE(Myscreen.GETSTRING(24,2,5,)),"NO RECORD/S FOUND") THEN
Print #1, "NO RECORDS FOUND" +Chr$(13) + Chr$(10)+"";