VFP7&9 Windows 7 Punctuation Anomoly
VFP7&9 Windows 7 Punctuation Anomoly
(OP)
I have a form with one pagefram which contains 10 pages.
One of the pages has a caption which reads "User Maint."
On my XP machine, the caption is fine in both the IDE and .EXE.
On my Windows 7 machine however, the caption reads ".User Maint" (Note the placement of the ".")
If I change the caption property on the properties sheet to read ".User Maint", the caption on the page reads "User Maint."!
I get the same behavior with characters that are not alpha nor numeric. In other words, !?<&%... all behave the same way, and only on a page caption. I don't get this behavior on a command button.
This is both within the IDE and a compiled .EXE on the Windows 7 box, for both VFP 7 and VFP 9.
Just wondering if anyone else had noticed this. I would hate to start writing code for dynamic captions depending on the OS.
One of the pages has a caption which reads "User Maint."
On my XP machine, the caption is fine in both the IDE and .EXE.
On my Windows 7 machine however, the caption reads ".User Maint" (Note the placement of the ".")
If I change the caption property on the properties sheet to read ".User Maint", the caption on the page reads "User Maint."!
I get the same behavior with characters that are not alpha nor numeric. In other words, !?<&%... all behave the same way, and only on a page caption. I don't get this behavior on a command button.
This is both within the IDE and a compiled .EXE on the Windows 7 box, for both VFP 7 and VFP 9.
Just wondering if anyone else had noticed this. I would hate to start writing code for dynamic captions depending on the OS.
-Dave Summers-
Even more Fox stuff at:
http://www.davesummers.net/foxprolinks.htm
RE: VFP7&9 Windows 7 Punctuation Anomoly
I don't get that with VFP9 on Vista.
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
-Dave Summers-
![[cheers] cheers](https://www.tipmaster.com/images/cheers.gif)
Even more Fox stuff at:
http://www.davesummers.net/foxprolinks.htm
RE: VFP7&9 Windows 7 Punctuation Anomoly
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
On a pageframe, even in design mode, it does exactly what you say in Vista!
(sorry for not properly reading your question!)
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
I've heard of this problem before. Some time ago, there was a thread in this forum on the subject. I can't remember the details or whether there is a solution, but I definitely remember seeing it.
Sorry, that's not much help, but at least you know you're not alone.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business
RE: VFP7&9 Windows 7 Punctuation Anomoly
I remember that too, but also don't now what the reason was or if there was a solution other than putting the dot at first, if you want it last. Tried setting the caption programmatical and turned themes off, both doesn't work out.
Bye, Olaf.
RE: VFP7&9 Windows 7 Punctuation Anomoly
It's very curious why captions would behave this way for W7 and not for XP though. Like I said, I would hate to have to write OS specific code for something this silly.
I guess the best option is to avoid anything but alpha-numeric for page captions.
-Dave Summers-
![[cheers] cheers](https://www.tipmaster.com/images/cheers.gif)
Even more Fox stuff at:
http://www.davesummers.net/foxprolinks.htm
RE: VFP7&9 Windows 7 Punctuation Anomoly
it may not have been a tek-tips thread. Could also have been somewhere else. It has to do with the OS, not with the foxpro version or SP. I wonder if there was a workaround. Using CHR(160) (nonbreakable space) as last char after a "." also doesn't help.
Bye, Olaf.
RE: VFP7&9 Windows 7 Punctuation Anomoly
You could write a function to sort it... but why does it do it?
CODE
PARAMETERS m.CAPSTRING
PRIVATE m.CAPSTRING,m.PREFIX,I,X,m.STRING
m.STRING = ""
m.CAPSTRING = ALLTRIM(m.CAPSTRING)
IF VAL(OS(3)) >= 6
FOR I = LEN(m.CAPSTRING) TO 1 STEP -1
IF ISTEXTORNUM(SUBSTR(m.CAPSTRING,I,1))
** finished checking
** pop it at the left
m.CAPSTRING = LEFT(m.CAPSTRING,I)
FOR X = 1 TO LEN(m.STRING)
m.CAPSTRING = SUBSTR(m.STRING,X,1)+m.CAPSTRING
NEXT
I = 0
ELSE
m.STRING = SUBSTR(m.CAPSTRING,I,1)+m.STRING
ENDIF
NEXT
ENDIF
RETURN(m.CAPSTRING)
FUNCTION ISTEXTORNUM
PARAMETERS m.MYCHAR
PRIVATE m.MYCHAR,m.FLG
m.FLG = .F.
IF UPPER(m.MYCHAR) $ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
m.FLG = .T.
ENDIF
RETURN(m.FLG)
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
There was an article on Foxite... it suggested setting the pageframe RightToLeft property to .f.
That sorts it
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
Glad you found something, I didn't pursue it any farther. I was just going to take my own suggestion and avoid punctuation.
Still somewhat odd that it does that with anything non alpha-numeric. I would think that as long as it was a printable character, it would behave as expected.
-Dave Summers-
![[cheers] cheers](https://www.tipmaster.com/images/cheers.gif)
Even more Fox stuff at:
http://www.davesummers.net/foxprolinks.htm
RE: VFP7&9 Windows 7 Punctuation Anomoly
What is it for?
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
I wonder why this defaults to .T. now on Vista and Win7 or if it always defaults to .T.
I haven't installd any right-to-left language, and I assume you all too. So it's odd that this changed.
What I found is this report on Vista beta versions: http://www
You may try, but this hotkey for changing left-to-right to right-to-left doesn't work for me, maybe it was only in the beta.
Still something of that bug remained, righttoleft should not be .t. for systems with only left-to-right languages installed. I bet this is not a foxpro bug, but an OS level bug, also because it just happens on Vista and Win7.
Bye, Olaf.
RE: VFP7&9 Windows 7 Punctuation Anomoly
That looks right. The default for pages seems to be .T. For all other controls, it's .F.
Very rum, especially as the Help says that RightToLeft is "disregarded unless you are running a Middle Eastern version of Microsoft Windows". I assume none of us is doing that.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business
RE: VFP7&9 Windows 7 Punctuation Anomoly
If you are designing in a non-european language, you are probably talking about labels that contain (mostly) non ASCII alpha (0123456789ABCDEFGHIJKLMNOP...) characters, and the RightToLeft function would reverse all of them.
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
Oh well. At least it can be fixed without adding a bunch of code.
-Dave Summers-
![[cheers] cheers](https://www.tipmaster.com/images/cheers.gif)
Even more Fox stuff at:
http://www.davesummers.net/foxprolinks.htm
RE: VFP7&9 Windows 7 Punctuation Anomoly
So if you had an expression like 'I want 300 widgets' it would convert to (roughly) 'stegdiw 300 tnaw I' [to get this to work in my head I had to think of the letters in the example as being the non-ASCII Arabic characters, like punctuation].
Perhaps this part of the behaviour is actually an OS bug-fix rather than a new bug!
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.
RE: VFP7&9 Windows 7 Punctuation Anomoly
Regards
ing
Griff
Keep
There are 10 kinds of people in the world, those who understand binary and those who don't.