I made a macro to sort a report that i can edited in VB. it works 98% of the time. r8002 is what i want it to find in this part of the macro. the only time this macro does not work is if there is not any r8002 to find and it stops. I want it to skip to the next part. is there any way i can make it say
"if you do not see this"( .WaitForEvent rcEnterPos, "30", "0", 6, 53)
than skip to the line that say (.TransmitANSI "top" )
this is just a chunk of the macro i have noted where it stops and where i would like it to jump to. is there an easy way i can do this?
If anyone can help thanks.
[CODE=vb].TransmitANSI "f r8002 prev"
.TransmitTermin alkey rcIBMNewLineKey
.WaitForEvent rcKbdEnabled "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 6, 53 (it stops here)
.TransmitTermin alkey rcIBMNewLineKey
.TransmitANSI "dd"
.TransmitTermin alkey rcIBMEnterKey
.WaitForEvent rcKbdEnabled "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 7, 2
.TransmitTermin alkey rcIBMHomeKey
.TransmitANSI "bottom"
.TransmitTermin alkey rcIBMEnterKey
.WaitForEvent rcKbdEnabled "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 4, 15
.waitForDisplay String "===>", "30, 4, 10
.TransmitTermin alkey rcIBMNewLineKey
.TransmitTermin alkey rcIBMNewLineKey
.TransmitANSI "dd"
.TransmitTermin alkey rcIBMEnterKey
.WaitForEvent rcKbdEnabled "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 5, 9
.waitForDisplay String "******","3 0", 5, 2
.TransmitTermin alkey rcIBMHomeKey
.TransmitANSI "top" (I want it to jump to here)
.TransmitTermin alkey rcIBMEnterKey[/CODE]
"if you do not see this"( .WaitForEvent rcEnterPos, "30", "0", 6, 53)
than skip to the line that say (.TransmitANSI "top" )
this is just a chunk of the macro i have noted where it stops and where i would like it to jump to. is there an easy way i can do this?
If anyone can help thanks.
[CODE=vb].TransmitANSI "f r8002 prev"
.TransmitTermin alkey rcIBMNewLineKey
.WaitForEvent rcKbdEnabled "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 6, 53 (it stops here)
.TransmitTermin alkey rcIBMNewLineKey
.TransmitANSI "dd"
.TransmitTermin alkey rcIBMEnterKey
.WaitForEvent rcKbdEnabled "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 7, 2
.TransmitTermin alkey rcIBMHomeKey
.TransmitANSI "bottom"
.TransmitTermin alkey rcIBMEnterKey
.WaitForEvent rcKbdEnabled "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 4, 15
.waitForDisplay String "===>", "30, 4, 10
.TransmitTermin alkey rcIBMNewLineKey
.TransmitTermin alkey rcIBMNewLineKey
.TransmitANSI "dd"
.TransmitTermin alkey rcIBMEnterKey
.WaitForEvent rcKbdEnabled "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 5, 9
.waitForDisplay String "******","3 0", 5, 2
.TransmitTermin alkey rcIBMHomeKey
.TransmitANSI "top" (I want it to jump to here)
.TransmitTermin alkey rcIBMEnterKey[/CODE]
Comment