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!

ASSIGN VARIABLE TO LOCATOR FIELD 1

Status
Not open for further replies.

C7ROOKIE

Programmer
Nov 18, 2010
2
US
I AM MAKING A PAYROLL PROGRAM.(CLARION 7)
FROM THE EMPLOYEES GROSS FIELD I HAVE A LOOKUP FILE TO SHOW
THE TAX RATE. IF I MANUALLY PUNCH IN THE GROSS PAY THE LOOK
UP WORKS GREAT. IF THE GROSS IS CALCULATED ( HRS * PAYRATE)
I CAN NOT GET IT TO CARRY OVER TO THE LOOKUP WITH THE AMOUNT CALCULATED. WHAT AM I MISSING???
 
Hi!

It would be a better approach to define a parameter for the Tax Lookup procedure where the Gross Amount is being passed. That way, it will not depend on the availability of the correct value in the Record buffer. To do that you need to ::

1. Set the Prototype and Parameters (under Actions) of the Tax Lookup procedure as (REAL inpGrossAmount).

2. Use the inpGrossAmount to calculate/select the Tax Rate.

3. Call the Lookup procedure as MyTaxLookup(MyGrossAmount) from the calling procedure.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top