PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Amount of interests due
FinPeriodInterest (Example)
Amount of interests due
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjaxUser code (UMC) The following code is used to find out the amount of interests due. The amount, the rate, the period and the duration of the loan are entered by the user in edit controls (EDT_Amount, EDT_Rate, EDT_Period, EDT_Duration).
We assume that the values entered by the user correspond to the same time unit.
// -- Click code on BTN_InterestPeriod
// Declare the variable
ResInterestPeriod is real
// Calculate the amount of interests due
ResInterestPeriod = FinPeriodInterest(EDT_Amount, EDT_Rate, EDT_Period, EDT_Duration)
IF FinError() = 0 THEN
Info("The amount of interests due is: " + ResInterestPeriod)
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment