|
-
Oct 20th, 2007, 05:23 PM
#1
Thread Starter
Fanatic Member
Regional Settings - Problems?
I am getting this error in VB log files if I change the regional settings to Dutch for instance WHY
Property Size in Font had an invalid value.
I had the font set to "Arial Black - Bold - 26"
The error log file also refers to a Line number, what does this number relate too
Last edited by JohnSavage; Oct 20th, 2007 at 05:49 PM.
-
Oct 20th, 2007, 07:56 PM
#2
Re: Regional Settings - Problems?
What is the error message in the log file?
-
Oct 20th, 2007, 09:25 PM
#3
Re: Regional Settings - Problems?
most common error with this is the separator for decimals.
-
Oct 21st, 2007, 02:27 AM
#4
Thread Starter
Fanatic Member
Re: Regional Settings - Problems?
This is a typical log file entry
Line 60: Property Size in Font had an invalid value.
Line 79: Property Size in Font had an invalid value.
Line 107: Property Size in Font had an invalid value.
Line 125: Property Size in Font had an invalid value.
Line 60: Property Size in Font had an invalid value.
Line 79: Property Size in Font had an invalid value.
Line 107: Property Size in Font had an invalid value.
Line 125: Property Size in Font had an invalid value.
Line 60: Property Size in Font had an invalid value.
Line 79: Property Size in Font had an invalid value.
Line 107: Property Size in Font had an invalid value.
Line 125: Property Size in Font had an invalid value.
-
Oct 21st, 2007, 03:04 AM
#5
Thread Starter
Fanatic Member
-
Oct 21st, 2007, 02:15 PM
#6
Thread Starter
Fanatic Member
Re: Regional Settings - Problems?
My Lord Orwell
Would a simple
Format((Number to be formated), ("#############################0.0"))
Not sort all of those problems
-
Oct 21st, 2007, 02:25 PM
#7
Re: Regional Settings - Problems?
Well, this should be self explanatory.
 Originally Posted by JohnSavage
Line 60: Property Size in Font had an invalid value.
Whatever font it is referring to is not supported under the setting you changed to. The same with this
 Originally Posted by JohnSavage
Line 1014: Class CCRUpDown6.ccrpUpDown of control ccrpUpDown11 was not a loaded control class.
I have no idea what CCRUpDOwn6 is, but since VB does not ship with that control, I'm guessing it is a third party control that you got from somewhere and is not supported under whatever regional setting you are using at the time.
-
Oct 21st, 2007, 03:30 PM
#8
Thread Starter
Fanatic Member
Re: Regional Settings - Problems?
Hack, you say
Whatever font it is referring to is not supported under the setting you changed to.
How then do I establish which fonts are supported for all settings
Surely if you write an app then in the ideal world you want this app to be used by all users in the world. Or is it reasonable to ask them all to change to the UK/US regional settings
On the third party control issue could you explain a little more about "controls" not working under different settings?
-
Oct 22nd, 2007, 05:07 PM
#9
Thread Starter
Fanatic Member
-
Oct 22nd, 2007, 06:34 PM
#10
Re: Regional Settings - Problems?
I am interested in your problem and resolution thereof. If I understand what is being suggested, then a fontsize of 8.5, for example, can't be read by French because it is expecting 8,5
If so, that is truly annoying. I guess I'll have to try it and see what I get. Question> Does this happen in uncompiled or compiled only? About the 3rd party control, who knows, don't assume they coded it properly. Maybe they are using Val(stringVariable) which is not regional-aware vs using CDbl(stringVariable) which is regional-aware. It is anyone's guess.
Next question would be, is this an IDE-only thing. In otherwords, if you compiled the same project (US regional settings), then changed it to French, would the exe fail? I would think not.
-
Oct 22nd, 2007, 07:43 PM
#11
Re: Regional Settings - Problems?
Ok, I had to try it. I do believe it is a IDE-only issue. When I created/saved a project, while French settings were active, no problems. But after moving back to English:USA, errors appeared when trying to reopen the project. Looking in the .frm file, regarding font size, "Size = 8,25", U.S. settings expect 8.25. So, bottom line, design & compile in same language settings. If I download a project from "overseas" and I see this come up, at least, now, I know what to do to fix it.
-
Oct 23rd, 2007, 03:17 AM
#12
Thread Starter
Fanatic Member
Re: Regional Settings - Problems?
LaVolpe
Many thanks for that but I believe it's more of a problem that that.
I was using the Font Arial with a large size but if I change to MS Sans Serif which has a limited size select of 8,10,12,14,18,24 then the problem goes away. I think it's about getting a Font to be bigger than 24
-
Oct 23rd, 2007, 09:32 AM
#13
Re: Regional Settings - Problems?
does the other font list partial points such as 8.5?
-
Oct 23rd, 2007, 10:08 AM
#14
Thread Starter
Fanatic Member
Re: Regional Settings - Problems?
No it was Arial so whole numbers only
-
Oct 23rd, 2007, 10:12 AM
#15
Re: Regional Settings - Problems?
If you open the .frm which was identified in the error log, are there any other fonts in there with decimal values? Remember that most controls can have their own font settings. It is worth a look-see.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|