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

SIM - transfer check

Status
Not open for further replies.

jd11111

Programmer
Apr 29, 2010
160
US
I'm trying to write a sim event to verify that the person transferring a check in is the check owner. If the user is not the check owner, the event exits with an error.

The error message works if it is not the check owner. The problem I'm having is when in the "else" block, nothing seems to happen (see below).

event inq:110
if @CKEMP <> @TREMP
exitwitherror "Only the check owner can transfer a check"
else
loadkybdmacro key(1,393219) //nothing happens here
endif
endevent


Thanks for any help!
 
Hi again,
What do you want to do with the check here? I imagine the check is picked up, if there is an error exit, else :::

The options for Key are KeyType, MacroKey#.
Try loadkybdmacro key(1,327686) //This is Begin check by ID

loadkybdmacro key(1,393220) //would BLOCK TRANSFER checks

I dont believe 393219 is a Keyboard macro.

What do you want to do?



 
At this point they have are already in an open check and they need to transfer another check over, perhaps a transfer from the bar. This is done today with the micros built-in function to transfer a check. However, the goal here is to prevent someone from transferring a check into another person's check, so I'm trying to check to verify that they are the check owner before performing the split check.

393219 is listed in the SIM help file as "add/transfer table"
393218 is listed in the SIM help file as "add/transfer check number"

Is there a different way to call the transfer check function in sim?



The following is copied from the help file:

Check Operations Keys

Key Key Type Key Code Hex Key (2800 only)
Split Check 1 393217 00C8
Add/Transfer Check Number 1 393218 00C4
Add/Transfer Table 1 393219 00C5
Block Transfer Check 1 393220 00AE
 
why does that portion really even need to be in your if statement. Can you replace the else with your endif, that way it will exit out of the event in your logic and never make it to the last command
 
MikeRose - the problem is not the flow of the script. The problem is when it gets to the command, nothing happens.

loadkybdmacro key(1,393219)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top