Re: Report label caption expression

Author: Laurie Alvey

Posted: 2016-08-25 at 08:18:02

Rafael, that would be fine on a form, but Joe is talking about a REPORT

label!

Laurie

On 25 August 2016 at 13:22, rafael copquin <rafael.copquin@gmail.com> wrote:

> If you want to use a label do this:

>

> local cText,cYear

>

> cYear = alltrim( str( year() ) ) && if you want the current year

>

> cText = cYear+' Auto mileage report'

>

> thisform.lblYear.caption = cText

>

> Rafael Copquin

>

>

>

> On 24/08/2016 22:14, Joe Yoder wrote:

>

>> I want the header on a report to display the year from a variable along

>> with some text. When I set the value to "str(m.Year) + 'Auto Mileage

>> Report'" that string is displayed rather than "2015 Auto Mileage Report."

>>

>> I think I solved this years ago with the use of a special character or

>> syntax but I can't remember what it was.

>>

>> Thanks in advance for any help,

>>

>> Joe

>>

>>

>> --- StripMime Report -- processed MIME parts ---

>> multipart/alternative

>> text/plain (text body -- kept)

>> text/html

>> ---

>>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAMvTR9eSqthRowd==tfUiMSsFfj=jOaee-3TX1KeOUKD+dz8Eg@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Laurie Alvey