Good morning everyone,
So I have quite a few scripts that depend on the formatting command to format the date to how I need it.
Since the months have changed from a single digit, to a double digit, I am starting to run into some issues.
First off, here is my Format command:
Format(Month(Date), "0") & "/" & Format(day(Date), "00") & "/" & "18"
So here is my problem,
I have my scripts set to read the screen for the date, I originally had it set for 7 characters since it was 9/xx/xx but now since it's 10/xx/xx I'm having to go back and adjust each line to 8 that refers to that date.
Also, positioning, I have it currently set for EMReadScreen X,X,63 and am having to change all those to EMReadScreen X,X,62 since I need it to read that extra digit.
Is there anyway around this? Am I using the correct command for this situation?
Here is an example I am using.
D = Format(Month(Date), "0") & "/" & Format(day(Date), "00") & "/" & "18"
For i = 9 to 19
EMReadScreen MyString, 8, i, 63
If UCase(MyString) = D then
EMSetCursor i, 4
EMWaitX 1, RetC
EMSendKey "1"
EMWaitX 1, RetC
Exit for
Else
End if
Next i
As always, thanks in advance.
#Rumba





