Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

( ) in Caption property of page

Status
Not open for further replies.

michaelkatz

Programmer
Sep 1, 2002
50
GB
Using vfp 7.0

I have a PageFrame with 4 pages. If I use the caption...
Delete Form(s)
it shows up...
(Delete Form(s

I can't figure out why ?
 
thisform.pageframe1.page4.Caption = "Delete Form(s)" and setting caption to Delete Forms(s) in the property sheet
Work fine for me.

How are you setting the caption property?
 
I also tried both ways as mreigler did. It does not work for me.

I am using an English version. 7.0 sp1

Did notice 1 thing.

The forms rightoleft property is set to .F.
The pageframes righttoleft property defaults to .T. If I change it to .F. it seems to solve the problem.

The help file says this is ignored unless using a Middle east version, which I am not. ? ? ?


Thanks guys.
 
I see the same thing here. Only in VFP 7 though - VFP 6, 8, & 9 display "Delete Form(s)" as you'd expect.

I was setting the caption at design time and was wondering whether I'd see different behaviour if I changed the caption at run time. I now have a form with a pageframe, a textbox and a button and I can report that:
[TT]
Delete Form(s) -> (Delete Form(s
Delete Form(s -> Delete Form(s
Delete Forms) -> (Delete Forms
(Delete Forms -> Delete Forms)
(Delete) Forms -> Delete) Forms)
[/TT]

It appears that the following rules apply:
an opening bracket at the start of the caption will appear as a closing bracket at the end of the caption.

a closing bracket at the end of the caption will appear as an opening bracket at the beginning of the caption.


And it gets worse. I thought I'd fool it by putting a period after the closing bracket so that it wasn't the last character. Periods, underscores, asterisks and square brackets also switch themselves from the beginning to the end of the caption.

Can't explain it but it's interesting behaviour.

Geoff Franklin
 
I tried it with a letter (not a punctuation symbol) at the end of the caption and it seemed to work.

Still don't know why this property is not ignored in non-Middle East versions.

Michael
 
Are you saying you ran your tests with RightToLeft set .T., as Michael did?

I had to go and dig up a laptop with VFP7 on it so I was away for a while and wrote my reply before seeing what everyone else was discussing. When I saw michaelkatz's response I flipped RightToLeft and everything worked normally.

Very odd though to have the same form behaving normally in VFP 6, 8 & 9 and behaving so peculiarly in VFP 7.

Geoff Franklin
 
Very Odd.

I still can't duplicate the behavior. No matter what I set RightToLeft, it always displays just fine (and I started out with the same defaults as Michael when it worked okay). English Version VFP 7 SP 1. I also Tried a Command Button and TextBox and they both worked as advertised too. What else would cause a difference in the display? Windows Version (XP Pro here)?

Mike Reigler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top