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!

Extra! Check Value?

Status
Not open for further replies.

ej2rms13

Technical User
Dec 11, 2017
10
US
Hello,

I am fairly new to programming. I've had a couple classes in college about C+ and C++ so I've been trying to adjust to Attachmate Extra Macros. Basically I need to write an IF statement based on whether or not a value at a coordinate is blank or not. I need to check if coordinates (10, 74) are blank. I need to go off of the "blank" because there are too many other variables that it could be to base the IF statement off of.

Any help is appreciated.

Thanks,
 
Hi,

Coordinates (row and column) give you a point in the screen. That might be, for instance the beginning of a field. Check out GetString(row, col, len).
Code:
If Trim(Screen.GetString(10, 74, 5)) = “” Then
   ‘Nothing in this 5 character field
End If

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top