Subject Re: report canrender
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Wed, 5 Dec 2018 20:53:22 -0800
Newsgroups dbase.getting-started

On 12/5/2018 7:53 PM, charlie wrote:
> Hi... I am having trouble with this:
>
> function TEXT9_canRender()
>              this.text = this.parent.text6.text()+this.parent.textadditamt1.text()
>        return true
>
> text6 is basically the total of a row in streamframe  I am trying to take it from the text box it is situated in on the footerband.  textadditamt is the amount of a field.
>
> I am trying to take a total amount of a field from the streamframe and add it to textadditamt which appears in text on the footerband of the report.
>
> text9 is supposed to represent textadditamt + text6.
>
> This works sometimes, but other times text9 is completely blank.  Not sure at all why it is blank sometimes.
>
> I am not that familiar with this part of reports.  Think I need some help.  Thanks much!!!

Well, text is ... text, right? So what are you getting? Have you tried
using val() around these?

  this.text = val(this.parent.text6.text()) +
val(this.parent.textadditamt1.text())

Just a thought.

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