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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Micros Cash Pickup

Status
Not open for further replies.

JosueICR

IS-IT--Management
Jan 12, 2009
45
MX
Hi

I have a sim interface to populate an external table with info related to cash pickups, inside the Sim i have this instruction

LoadKyBdMacro Cash_Pickup, MakeKeys(CASH_AMNT), @Key_Enter

I need to catch if this loadKyBdMacro returns a message o error when the cash pick up is more than the sale.

If cashpickuperrror = ?????
.....
.....
else
.....
.....
end

Thanks in advance.

J

 
You aren't calling a function. By the time that Macro runs, your SIM has no more ways to interact (any key macro you run, and you can only initiate one per cycle AFAIK, runs AFTER everything else completes). You will need to do your checks BEFORE you hit the macro.

Code:
....
if CASH_AMNT > @Ttldue
    -> do something here
else
    -> proceed as normal
endif
...
 
That makes a lot sense, i will change the conditions that triggers the macro.

Thanks for your help.

Josue R.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top