Hello everyone,
Currently, the way I am writing the scripts is to check a whole row the required string in an IF statement and if it's not there go to the next IF statement.
While this definitely does work, i'm just wondering if there is a way to compress the code so I don't have a long list of IF statements.
I would just like to try to code more efficiently with less work if possible.
For example in the below script. it checks 2 strings and if its there it puts a 2, if not it goes to the next IF statement to check the row below it and do the same
I have 10 different IF statements since there are 10 rows.
Is there anyway to repeat the same IF statement, just move down a row?
Do
'Check to see if Tapes have EXP Status and if they are a CART3592A2
'If yes then Place 2
EMReadScreen MyString, 3, 13, 75
EMReadScreen SysString, 10, 13, 60
If UCase( MyString) = "EXP" and UCase(SysString) = "CART3592A2" then
EMSetCursor 13, 3
EMSendKey "2"
Else
End if
EMReadScreen MyString, 3, 14, 75
EMReadScreen SysString, 10, 14, 60
'If yes then Place 2
If UCase( MyString) = "EXP" and UCase(SysString) = "CART3592A2" then
EMSetCursor 14, 3
EMSendKey "2"
Else
End if
As always, thanks in advance!
#Rumba