Subject Re: bBASE payment annuity( p_,i,_n_) function
From Norman Snowden <duluth@msn.com>
Date Sat, 06 Nov 2021 19:24:44 -0400
Newsgroups dbase.getting-started

Ken Mayer Wrote:

> On 11/5/2021 5:21 PM, Norman Snowden wrote:
> > " dBASE payment Annuity, (p_,i_,n_)"
> >             ?  p_,"p_", i_,"i_", n_, "n_"
> >        457,"p_", .07, "i_", 13, "n_"        
> >        cpayment = Payment(457,.07,13)
> >            cpayment = 54.78
> >            This is correct
> >            "However if I set up"
> >            cpayment = Payment(p_,i_,n_)
> >            "It won'compute! Computer freezes up"
> >      
> >            It previously worked in this program several years ago. Now a problem.
> >            I would appreciate any ideas.
> >            Thanks, Norman

>
>
> Using information you gave above, put in a program:
>
> /*
>     Payment test Norman Snowden
> */
>
> p_ = 457
> i_ = .07
> n_ = 13
>
> ?  p_,"p_", i_,"i_", n_, "n_"
> //      457,"p_", .07, "i_", 13, "n_"        
> cpayment = Payment(457,.07,13)
> ? cPayment
> cpayment = Payment(p_,i_,n_)
> ? cPayment
>
> Works fine.
>
> So ... you need to provide more information. Such as, what version of
> dBASE? What version of Windows? Where are the values defined? Etc.
>
> Ken
>
> --
> *Ken Mayer*
> Ken's dBASE Page: http://www.goldenstag.net/dbase
> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
> dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm

Sorry about my post. The i_ component assignment was zero. I thought I had checked this out thoroughly before. I am about inactive now concerning programing.  

Thanks anyway Ken. I still have your original book.