PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Amount of interests due
FinPeriodInterest (Example)
Amount of interests due
WEBDEV - Server codeAjax 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