Results 1 to 15 of 15

Thread: Regional Settings - Problems?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Regional Settings - Problems?

    What is the error message in the log file?

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Regional Settings - Problems?

    most common error with this is the separator for decimals.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    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.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: Regional Settings - Problems?

    And now another error whan switching in between settings

    Line 1014: Class CCRUpDown6.ccrpUpDown of control ccrpUpDown11 was not a loaded control class.
    Line 1023: Class CCRUpDown6.ccrpUpDown of control ccrpUpDown1 was not a loaded control class.
    Line 1032: Class CCRUpDown6.ccrpUpDown of control ccrpUpDown2 was not a loaded control class.
    Line 1041: Class CCRUpDown6.ccrpUpDown of control ccrpUpDown3 was not a loaded control class.
    Line 1050: Class ActiveResizeCtl.ActiveResize of control ActiveResize1 was not a loaded control class.
    Line 1067: Class CCRUpDown6.ccrpUpDown of control ccrpUpDown4 was not a loaded control class.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: Regional Settings - Problems?

    My Lord Orwell

    Would a simple

    Format((Number to be formated), ("#############################0.0"))

    Not sort all of those problems

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Regional Settings - Problems?

    Well, this should be self explanatory.
    Quote 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
    Quote 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.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    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?

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: Regional Settings - Problems?

    Hack's give up on me

    Anyone

  10. #10
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.

  11. #11
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    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

  13. #13
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Regional Settings - Problems?

    does the other font list partial points such as 8.5?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: Regional Settings - Problems?

    No it was Arial so whole numbers only

  15. #15
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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
  •  



Click Here to Expand Forum to Full Width