Anonymous
in reply to:
Anonymous
06-21-2016
08:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-21-2016
08:27 PM
Could you not add the running total in each try/catch block?
You wouldn't need the really long statement at the end...
Try
SAW_labour_set = (iProperties.Value("Custom", "SAW_SET")/60)*SAW_labour_rate
SAW_labour_run = (iProperties.Value("Custom", "SAW_RUN")/60)*SAW_labour_rate
' SAW_labour = SAW_labour_set + SAW_labour_run
labour_total += SAW_labout_set + SAW_labour_run
Catch
End Try
Try
CNCF_labour_set = (iProperties.Value("Custom", "CNCF_SET")/60)*CNCF_labour_rate
CNCF_labour_run = (iProperties.Value("Custom", "CNCF_RUN")/60)*CNCF_labour_rate
' CNCF_labour = CNCF_labour_set + CNCF_labour_run
labour_total += CNCF_labour_set + CNCF_labour_run
Catch
End TryAlso, found this link..
See post #5, interesting approach to keeping track of multiple custom iProperties.
Yet another approach, setup a custom class for your labor, erh... labour costs with a module in the class to add all of values the in the custom class.
http://blogs.rand.com/manufacturing/2011/12/if-this-then-ilogic.html
Good luck and let us know how your final project turns out.