Hello all,
I still read this list but I have moved onto managing a training company now
but have a VFP contacts/mailing database we use. It all works well but I
just tried to get the caption for page1 to read "Details (X)" with X
replaced by a ranking field. brain-dead easy right? My code for this is...
thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'
The result is as follows... "(Details (X"
not only is the last parenthesis coming up first instead of last it has
swapped it around. I remember in my former career having problems with it
and if I recall right, gave up on it.
Does anyone have a reason for this behaviour and better still... a
work-around?
Cheers
Geoff Flight
SRIT
_______________________________________________
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/00f401cf7a3b$7ca1a060$75e4e120$@com.au
** 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.
What is the value of srit_db.crank?
My suspicion is that it has something VFP would consider "non standard"
ACSII.
Test it by replacing the srit_db.crank value with something else...like
"Hello World"
Mike Copeland
Geoff Flight wrote:
> Hello all,
>
> I still read this list but I have moved onto managing a training company now
> but have a VFP contacts/mailing database we use. It all works well but I
> just tried to get the caption for page1 to read "Details (X)" with X
> replaced by a ranking field. brain-dead easy right? My code for this is...
>
> thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'
>
> The result is as follows... "(Details (X"
>
> not only is the last parenthesis coming up first instead of last it has
> swapped it around. I remember in my former career having problems with it
> and if I recall right, gave up on it.
>
> Does anyone have a reason for this behaviour and better still... a
> work-around?
>
> Cheers
>
> Geoff Flight
> SRIT
>
>
>
[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/5385837C.5000205@ggisoft.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.
Try this:
cCaption = "Details"+(srit_db.crank)+")"
thisform.pageframe1.page1.caption=cCaption
Dave
-----Original Message-----
From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Geoff Flight
Sent: 28 May 2014 07:10
To: 'ProFox Email List'
Subject: Frustrating page tab captions
Hello all,
I still read this list but I have moved onto managing a training company now but have a VFP contacts/mailing database we use. It all works well but I just tried to get the caption for page1 to read "Details (X)" with X replaced by a ranking field. brain-dead easy right? My code for this is...
thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'
The result is as follows... "(Details (X"
not only is the last parenthesis coming up first instead of last it has swapped it around. I remember in my former career having problems with it and if I recall right, gave up on it.
Does anyone have a reason for this behaviour and better still... a work-around?
Cheers
Geoff Flight
SRIT
[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/18725B8CD2D5D247873A2BAF401D4AB22A511255@EX2010-A-FPL.FPL.LOCAL
** 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.
I forgot to add.... if that doesn't work then try:
thisform.pageframe1.page1.caption=(cCaption)
Dave
-----Original Message-----
From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Dave Crozier
Sent: 28 May 2014 07:39
To: ProFox Email List
Subject: RE: Frustrating page tab captions
Try this:
cCaption = "Details"+(srit_db.crank)+")"
thisform.pageframe1.page1.caption=cCaption
Dave
-----Original Message-----
From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Geoff Flight
Sent: 28 May 2014 07:10
To: 'ProFox Email List'
Subject: Frustrating page tab captions
Hello all,
I still read this list but I have moved onto managing a training company now but have a VFP contacts/mailing database we use. It all works well but I just tried to get the caption for page1 to read "Details (X)" with X replaced by a ranking field. brain-dead easy right? My code for this is...
thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'
The result is as follows... "(Details (X"
not only is the last parenthesis coming up first instead of last it has swapped it around. I remember in my former career having problems with it and if I recall right, gave up on it.
Does anyone have a reason for this behaviour and better still... a work-around?
Cheers
Geoff Flight
SRIT
[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/18725B8CD2D5D247873A2BAF401D4AB22A51128B@EX2010-A-FPL.FPL.LOCAL
** 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.
Does messing around with the TabStretch and TabStyle properties of the
PageFrame change anything?
_______________________________________________
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/1401266547.26526.122350741.235B767B@webmail.messagingengine.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.
Don't know if this helps, but I have a form method called AfterMove which
fires whenever the record pointer changes. Among other things it changes
the caption of Page1 on the pageframe thus (members.id is integer type):
THIS.oPgf.Page1.Caption = "Details (" + TRANSFORM(members.id) + ")"
Works perfectly. The only property changed from the default value is Font
(Tahoma 9pt).
Laurie
On 28 May 2014 09:42, Alan Bourke <alanpbourke@fastmail.fm> wrote:
> Does messing around with the TabStretch and TabStyle properties of the
> PageFrame change anything?
>
[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/CAMvTR9d9MCCjzKYHyfd2TH6qax62uXf3amLgtmFdNwq+xxKNrQ@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.
On May 28, 2014 6:32:09 AM EDT, Laurie Alvey <trukker41@gmail.com> wrote:
> Don't know if this helps, but I have a form method called AfterMove
> which
> fires whenever the record pointer changes. Among other things it
> changes
> the caption of Page1 on the pageframe thus (members.id is integer
> type):
>
> THIS.oPgf.Page1.Caption = "Details (" + TRANSFORM(members.id) + ")"
>
> Works perfectly. The only property changed from the default value is
> Font
> (Tahoma 9pt).
>
> Laurie
>
>
> On 28 May 2014 09:42, Alan Bourke <alanpbourke@fastmail.fm> wrote:
>
> > Does messing around with the TabStretch and TabStyle properties of
> the
> > PageFrame change anything?
> >
I remember Andy Kramek spoke about this once in a conference session. I searched the internet and found this post from him.
http://www.foxite.com/archives/page-caption-0000090772.htm
--
Tracy
_______________________________________________
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/6c6343b1-8977-4791-be65-c0c8c02c6e3e@email.android.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.
If you run the sample code in the MemberClass help topic (which
demonstrates dynamic page captions), it runs correctly.
Laurie
On 28 May 2014 12:41, Tracy Pearson <tracy@powerchurch.com> wrote:
> On May 28, 2014 6:32:09 AM EDT, Laurie Alvey <trukker41@gmail.com> wrote:
> > Don't know if this helps, but I have a form method called AfterMove
> > which
> > fires whenever the record pointer changes. Among other things it
> > changes
> > the caption of Page1 on the pageframe thus (members.id is integer
> > type):
> >
> > THIS.oPgf.Page1.Caption = "Details (" + TRANSFORM(members.id) + ")"
> >
> > Works perfectly. The only property changed from the default value is
> > Font
> > (Tahoma 9pt).
> >
> > Laurie
> >
> >
> > On 28 May 2014 09:42, Alan Bourke <alanpbourke@fastmail.fm> wrote:
> >
> > > Does messing around with the TabStretch and TabStyle properties of
> > the
> > > PageFrame change anything?
> > >
>
> I remember Andy Kramek spoke about this once in a conference session. I
> searched the internet and found this post from him.
> http://www.foxite.com/archives/page-caption-0000090772.htm
>
>
> --
> Tracy
>
[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/CAMvTR9dEdCUn5x=q1NfxSOCSonAcP4c+DiJO_rq1D=76X8ZUiw@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.
Author: mbsoftwaresolutions@mbsoftwaresolutions.com
Posted: 2014-05-28 11:36:30 Link
On 2014-05-28 02:10, Geoff Flight wrote:
> Hello all,
>
> I still read this list but I have moved onto managing a training
> company now
> but have a VFP contacts/mailing database we use. It all works well but
> I
> just tried to get the caption for page1 to read "Details (X)" with X
> replaced by a ranking field. brain-dead easy right? My code for this
> is...
>
> thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'
>
> The result is as follows... "(Details (X"
>
> not only is the last parenthesis coming up first instead of last it has
> swapped it around. I remember in my former career having problems with
> it
> and if I recall right, gave up on it.
>
> Does anyone have a reason for this behaviour and better still... a
> work-around?
>
> Cheers
>
> Geoff Flight
> SRIT
Hi Geoff,
I actually asked this years ago here. My workaround was to retool it:
> thisform.pageframe1.page1.caption='Details - '+srit_db.crank
_______________________________________________
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/fd903c39eb7e6de5dc52829379b75c0b@mbsoftwaresolutions.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.
I seem to remember something about the parenthesis causing the issue.
Is that correct Mike?
Geoff, can you use square brackets instead? (untested)
thisform.pageframe1.page1.caption='Details ['+srit_db.crank + ']'
On 05/28/2014 12:36 PM, mbsoftwaresolutions@mbsoftwaresolutions.com wrote:
>
> I actually asked this years ago here. My workaround was to retool
> it: > thisform.pageframe1.page1.caption='Details - '+srit_db.crank
_______________________________________________
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/538611D4.8060108@cullytechnologies.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.