Getting windows regional settings in forms 6i

Hi!
Is there a way to obtain the regional settings of the windows user currently logged in? I need to know the user's decimal separator and date format to generate a file that will be opened in excel.
Thanks!
Patrick

If you know where to fid that information in the registry, you could use D2KWUTIL.pll and dll to read the registry.

Similar Messages

  • Firefox does not show numbers in arabic format when the windows regional settings is set to arabic, instead it shows numbers in latin characters

    when switching windows regional settings to Arabic, numbers are still shown in Latin characters, unlike other browsers (ex IE).
    == This happened ==
    Every time Firefox opened
    == all firefox versions

    See "bidi.numeral" in http://kb.mozillazine.org/About:config_entries#Bidi.
    See also http://mxr.mozilla.org/mozilla1.9.2/source/modules/libpref/src/init/all.js#1058
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • Red X - Due to conflict between date format in Windows Regional settings

    Hello
    I face the following issue. To display some graphes that result of the selection of a date in a Java calendar (format mm/dd/yy) I have to change the Windows regional settings.
    Which of course impact other applications like Excel....
    Is there some settings/applet that can be set in Java JRE to prevent this issue ?
    Same issue what ever the JRE version used.
    currently JRE 1.4.2_07 VM 1.4.2_07-b05, plug-in 1.4.2_07

    Hi Kevin,
    I doubt anyone outside of Sun would be able to give you a definite answer to this one, but from my understanding of the JDK's interactions with Windows, I'd have to say no.
    I usually find that about the only Windows default that the JDK picks on is the current user locale. From there, the JDK likely chooses its own default date and currency formatting instances, as these are all packaged up within i18n.jar within the JDK libraries.
    If anyone can prove me wrong though, please do!
    Hope that helps!
    Martin Hughes

  • Getting Windows "list separator" from Forms

    Hi,
    My need is to get, from a Forms program, the "list separator" used by Windows (which you can modify through Settings/Control Panel/Regional options/Numbers/List separators).
    Thanks in advance.

    Any relationion to XML?

  • DIAdem Connectivi​ty Library and Windows Regional Settings

    Hi,
    I'm having a bit of a problem with a CVI program that uses the DIAdem connectivity library when deployed to PCs that have their "Language for non-Unicode programs" set to some non-English language (Japanese is one, but I suspect this will happen with others).  The problem comes up with file properties in TDM files that use the µ or 'mu' symbol in their Property name.  When I call the DDC_GetFilePropertyNames(...) function, I get different strings from the same .tdm file depending on whether I have Windows set to English (US) or Japanese.  As far as functions like DDC_GetFileProperty(...) are concerned the Property name string I get when my Windows is set to English is correct and I get an error using the string from when Windows is set to Japanese (-6213 DDC_PropertyDoesNotExist).  The end result is that my program functions just fine so long as the PC is set to English, and fails on PCs where it is set to Japanese.
    I've attached a small sample console program.  It will ask whether or not you want to create a .tdm file when run.  If yes, the program will create a test.tdm file with a property named "Test_With_µ_Symbol".  In either case, it will attempt to read the file, calling  DDC_GetFilePropertyNames(..) to read the property names, then DDC_GetFilePropertyType(...) and DDC_GetFileProperty(..) using the property name it gets back.  In order to see the problem I'm having, compile and run the program on a PC set to English.  It will have no problems reading the file property back.  Then take the file program to PC set to Japanese and run it, telling it to not create a new file (i.e. just read the existing file), and when the program attempts to read back the file property back it will fail.  Curiously enough if the program is compiled on the Japanese system it will have no problems running, which suggests that CVI will compile a different program depending on your Windows language setting (!?).
    As configuring a computer to use Japanese may be a bit of a pain, here are the bytes in the strings I get back from  DDC_GetFilePropertyNames (...) on the English system (top) and the Japanese system (bottom) which is really the heart of the problem I'm having.  The difference is the -75 on the top string and the -125 and -54 on the bottom string, corresponding to the 'mu' character:
    84 101 115 116 95 87 105 116 104 95 -75 95 83 121 109 98 111 108
    84 101 115 116 95 87 105 116 104 95 -125 -54 95 83 121 109 98 111 108  
    (I didn't post the actual strings as the forum may end up mangling the characters) 
    Thoughts?  I guessing I might be doing something I shouldn't by trying to use the 'mu' character in property strings, but on the other hand I don't think that DDC_GetFilePropertyNames (...)  should be giving different results based upon Windows language.  Thanks in advance for any help.  I'm running Windows XP and CVI 2010SP1.
    Attachments:
    DDCTest.zip ‏3 KB

    Hi tstanely,
    Another possible solution is to try and perform the solution that was mentioned in the Unicode forum in LabVIEW. At the end of the forum, Mark Moss mentions "One of our interns recently went through this adapting a program to display Chinese in the user interface.  His solution ended up being surprisingly simple:  Just read the strings from a text file stored using the target encoding.  In our case, there were really only two encodings of interest: Windows code-page 1252 (used on our company's computers located in North America) and UTF-8 (used on our company's computers in China)."
    Because it seems that the CVI is encoding strings in the application based on the code page used at the time, it might be possible to have multiple text files saved in the different code pages and to load the strings at run-time. You may still have to use the Multibyte Character Set functionality to determine the platform that is being used, etc.
    Milan

  • Regional settings influences jdbc stored procedure calls?

    Hi,
    We have a strange problem: we use a jdbc test client
    that does a simple stored procedure call with one
    input parameter (integer) and one output parameter
    (integer). Like:
    "? = callprocedure(?)" . The database resides on a different server.
    The problem is: this only works when we use "netherlands" regional setting on the windows 2000 machine that
    java client program runs on. If we switch to
    "english (united states)" the call gives other results
    in the output parameter / returns an error code.
    Does this have something to do with the Locale of the
    virtual machine? Or do I have to do something with
    NLS_LANG to eliminate the behaviour that is dependent on
    the windows regional settings? Please help!
    Thanks,
    Michel Schudel
    We use the Oracle JDBC thin driver, latest version.
    (archive: classes12.zip)

    Ok, here it is. Basically, I first call a stored procedure called SETPARAM which receives two Strings:
    a parameter name and a a parameter value. After that, I
    call a procedure called RUNSQLKIT without any input parameters. The output parameter is an integer that indicates the number of "cells" in the output message. After that, I start to retrieve the cells but that is not important here. What happens is: with Dutch regional settings, the number of cells is normal (387) but with
    US settings, the number of cells is -1 (indicates an error.) Why? I use no dates or floating point values as
    input/output!
    Jvm version is 1.3.1_08, oracle driver is 8.1.7
    (Oracle 8i) thin jdbc driver. Oracle runs on AIX.
    conn = m_dataSource.getConnection();
    // Setup the input params
    stmtInput = conn.prepareCall("BEGIN Pck_Sqlmast.setparam(?,?); END;");
    for (final Iterator iter = m_kitParameterNames.iterator(); iter.hasNext();) {
    final String sName = (String) iter.next();
    final String sValue = input.getParameter(sName);
    if (sValue != null) {
    stmtInput.setString(1, sName);
    stmtInput.setString(2, sValue);
    stmtInput.executeUpdate();
    // Call the kit
    stmtRun = conn.prepareCall("BEGIN ? := Pck_Sqlmast.runsqlkit(?); END;");
    stmtRun.registerOutParameter(1, Types.INTEGER);
    stmtRun.setString(2, m_kitName);
    stmtRun.executeUpdate();
    final int iCells = stmtRun.getInt(1);
    Hi Michel,
    Perhaps you would care to post some more information
    including:
    1. Entire error message and stack trace you are
    getting.
    2. The part of your java code where the error
    occurs.
    3. Java version you are using.
    4. Oracle database version you are using.
    5. Platform on which Oracle database is running.
    Good Luck,
    Avi.

  • Unable to get Windows User Name using Oracle Forms 6i, Jinitiator 1.3.1.17

    Hi,
    Requirement: Get Windows User Name using Oracle Web Forms 6i.
    Tools Using: Windows NT, Oracle web forms 6i, Oracle 10g DB.
    Description: I am using GetClientInfo JBean from otn.oracle.com, which gets windows user name, IP address and machine name. The demo I got from oracle web site uses Jinitiator version 1.1.7.18. While we are using the latest version Jinitiator 1.3.1.17. Due to this reason, I am unable to use Javakey which comes with older version but doesn't come with newer version, that's why I can't create the new JavaBean Java identity (PJC).
    Please advise what to do. All environment variables are set everything is done, this is the only thing bothering me.
    I went through the article 202768.1 from metalink, but on step 5, it gives an error keytool error: java.lang.Exception: Input not an X.509 Certificate.
    Also, please let me know if there is any other workaround for this requirement.
    Thanks & Best Regards,
    Mo

    Hi,
    Thanks for your kind reply. Actually there was a problem in creating a certificate, now it is okay with the same method. Certificate got imported on client and everything is ready.
    Now, the problem is when I try to set Bean Area Implementation Class property with oracle.forms.demos.GetClientInfo, it gives an error FRM-13008 Cannot find JavaBean with name 'oracle.forms.demos.GetClientInfo'.
    I went through the articles 1072329.6, 196824.1, and set ClassPath and Path variables with proper values. Also, I have copied jar file and signature file in forms60/java folder. I don't see any problems. Please let me know what I am doing wrong. My limitation is that I have to do all this in forms6i.
    I searched forums on metalink and found out that someone installed Patch 15, and everything went okay for him. Do you think I should install Patch 15? if YES, how will I do it, I mean should I first uninstall my forms and then install patch15 or install the patch on my forms?
    Thanks so much for your help.
    Thanks & Best Regards,
    Mo

  • LION: How do I get LION Finder to remember a window's settings as always before?

    LION: How do I get LION Finder to remember a window's settings (view, window size, position, toolbar, sidebar) like always before? It remembers soon after, but after a time it forgets and does what it wants. Redoing this over and over is driving me crazy. I've been using Mac since 1986 and never had this problem,. One of the most beloved things about the Mac OS is that it REMEMBERS the setting for virtually everything!  Clearly, Jobs has been out of action during LION development.
    Maybe there's a way (with TERMINAL or finder prefs??) to adjust the "Time To Forget" to infinity (because it's OK for a while and then reverts to defaults again).

    LaraCroft_NYC wrote:
    LION: How do I get LION Finder to remember a window's settings (view, window size, position, toolbar, sidebar) like always before?
    You don't (unfortunately) . Best to be patient until 10.7.2 is released (any day now), and which should fix this bug. If that doesn't work, then report it to Apple, but this is a BIG bug that Apple must and will fix soon.
    BTW, I suspect you may be right about Steve Jobs influence, but hopefully this is just an exception.

  • Getting windows error during running the sql scripts from form 6i

    I made a little form application. The purpose of this application is to generate explain plan for a particular SQL. Some sql scripts run internally in order to populate the result on form’s screen after pressing the form’s button but I am getting windows error during running the sql scripts from form 6i.
    I am using forms 6i with patch 17 with Oracle 10G database on windows 2000 professional on same computer.
    This application runs fine with 8i.
    Please inform me where the problem is and how to overcome it.
    Zafri.

    I am using Text_IO in my form's when button press trigger , inorder to create the
    text file, then in the same when button press triger
    I am calling RMAN via host command in order to run the script which was created by text_IO.
    Below you find some of the code. I will appreciate if you solve the problem.
    when button press trigger:
    Declare
    in_file3 Text_IO.File_Type;
    linebuf3 VARCHAR2(1800);
    output11 varchar2(1000);
    BEGIN
         output11:='C:\EXPLAIN_PLUS\misc\rm_file.bat ';
    Host(output11,no_screen);
    :sql.execution_plan:= 'Working........................';
    synchronize;
    in_file3 := Text_IO.Fopen('c:\explain_plus\misc\create_table.txt', 'w');
    Text_IO.Put_Line(in_file3, linebuf3);
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' run { sql "create table PLAN_TABLE (statement_id,...object_name varchar2(30),object_instance numeric,object_type varchar2(30),optimizer varchar2(255),search_columns number,id .....partition_start varchar2(255),partition_stop  varchar2(255),partition_id numeric,other long,distribution varchar2(30)) "; } ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.FCLOSE(in_file3)
              Declare
    un VARCHAR2(80);
    pw VARCHAR2(80);
    cn VARCHAR2(80);
    output VARCHAR2(1000);
    output2 VARCHAR2(1000);
    dummy varchar2(40);
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(1800);
    BEGIN
         Get_Connect_Info(un,pw,cn);
         /* for Plan_table Begg. Second INNER BLOCK */
         declare
              dummy2 varchar2(40);
         begin
         select table_name into dummy2 from all_tables where table_name='PLAN_TABLE';
         if dummy2 = 'PLAN_TABLE' then
         output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\MISC\TRUNC2.txt ' ;
    Host(output2,no_screen);
         end if;
         exception
         when no_data_found     then
    output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\misc\create_table.txt ';
    Host(output2,no_screen);
         end; --

  • Error in South Africa Regional Settings in Windows Server 2012 and Windows 8

    Please note that the format for numbers in South Africa regional settings is incorrect. I discovered this through on of our products that would not work on Server 2012, but works from XP to Windows 7.
    Where the decimal was always a point it has now been changed to a comma, which is incorrect and most likely will cause a lot of issues for customers in south africa that use decimal data.
    I can already see spatial data breaking where decimals are used and stored with points and not commas.
    To reproduce this error set your regional settings to South Africa and execute the following code in C#
    System.Convert.ToDouble("10.1234");
    This will throw a FormatException. Change regional settings from a , to a . and there we go it works.

    It seems that this is development related issue, please try to submit a new post in DEV forum. Thanks.
    Thanks
    Zero
    Respectfully Mr. Xia, it looks like the OP is reporting a localization issue, not a development issue.
    For the OP, there's a
    well researched post by a South African developer describing that the decimal comma is the correct choice.  The work cites University style guides, International conference agreements, and government legislation and regulation.
    An excerpt from Mr. MacLean's post, quoting work from EEPublishers:
    English-speaking countries (plus China, India and Japan) use the decimal point. There seems to be a general tendency to formally declare its use worldwide and the International Organisation for Standardization, ISO, also tends towards using the decimal point
    over the decimal comma. In view
    of the South African law, however, the comma shall still be employed in South Africa as “the only recognised decimal indicator for all numbers” [3].
    References
    [1] DR Hendrikz: South African Units of Length and Area, Department of Lands, Trigonometrical Survey, Special Publication No. 2, 1944.
    [2] Measuring Units and National Measuring Standards Act, 1973 (Act No. 76 of 1973), Government Gazette No. 4326, 5 July 1974.
    [3] The International Metric System (SI), Guide to the use of the SI in South Africa, The Council of the South African Bureau of Standards, M 33a, 1992
    [4] Measurement Units and Measurement Standards Act, 2006 (Act No. 18 of 2006), Government Gazette No. 29752, 28 March 2007.
    [5] T Zakiewicz: “Units of Length Measure & Geodetic Standards at the Cape, 1813-1912”, History of Surveying and Land Tenure, Collected Papers,
    Vol. 2, The Institute of Professional Land Surveyors & Geomaticians of the Western Cape, May 2004.

  • Jdeveloper 11g cannot be installed on Windows with Thai regional settings

    I have no idea where to properly submit this issue. Hope I do not abuse this forum for too much.
    Jdeveloper 11g cannot be installed on Windows with Thai regional settings configuration.
    I've got "A fatal error has occurred. This application will terminate" error dialog, while installing.
    I have to change my regional settings to English then install it and change my setting back later.
    Regards

    Sigh... This forum software doesn't even support image posting.
    The error is every easy to reproduce.
    1. On Windows XP, goto "Control Panel" -> "Regional and Language Options" -> "Standards and format"; and change that to "Thai"
    2. Invoke "jdevstudio11110install.exe"
    3. Always click "Next" until the error dialog appear.
    <pre>
    . Exit [x] .
    . [!] A fatal error has occurred. This application will .
    . terminate. .
    . [[ OK ]] .
    </pre>
    From my experience, this always have something to do with the Buddhist Era year system (AD + 543).
    Regards.

  • Get values in a popup window into the livecycle forms

    Hi,
    Is it possible to get the values in a popup window in a livecycle form or assign the values in a poup window into livecycle form?
    Thanks

    Hi,
    There is a method in the Acrobat SDK called execDialog that can be called from within an XFA Form. You can pass values to and from a dialog using this method. It is a bit involved and therefore I strongly recommend AcroDialog, which is a plugin for Acrobat from Windjack Solutions (http://windjack.com/product/acrodialogs/).
    You can use this graphical interface to create dialogs and hten copy the script into your XFA Form.
    Hope that helps,
    Niall

  • Microsoft Windows : Changing the region settings using browser.

    Hi,
    We have a jsp page which has a drop down list and a textbox. It has 3 languages namely, English, French, Spanish, Hindi and Tamil.
    If a user select French, the region should automatically changed and if the user type some thing in the text box next to drop down, he should see the characters in French, same way for all the languages.
    We are trying to achieve this on the client side. We are trying to implement this using JSP Page,
    Is there any way to achieve this or Do we have to include any VB Script.
    Please reply back if you have any suggestion.
    Thanks,
    Vijay.B

    I had the same issue - all VIs in English, but DAQmx and its subVIs were in German.  
    I completely uninstalled/reinstalled LabVIEW and the issue persisted.  I'm running LabVIEW 2014 (14.0, 32-bit) on Windows 8 64-bit, and I have another system running the LabVIEW 2014 on Windows 7 64-bit affected by the same issue.  All possible language and region settings on both computers are English (United States).
    I was able to fix the issue by downloading the newest standalone DAQmx software (14.5 at time of writing this)
    http://www.ni.com/download/ni-daqmx-14.5/5212/en/
    and just let it do a typical installation, over my current software, without uninstalling anything specific.  Everything seems to be fixed now - hope this helps someone else.

  • How can I get the windows regional settigs such as Decimal point setting

    I have the problem that the Labview program I wrote uses the regional settings to format numbers to string. I know one can change this in 6.0 but I am using instrument drivers and the total library has 200 or more vi in it. I don't have the time to edit all of these. So I would like to check the regional settings and then inform the user that he/she may need to change this, or even that the program will remotly change these settings. Any ideas or example code ?

    Another way of reading it is through the registry. Just open a key:
    + Open Registry Key.vi
    + HKEY_CURRENT_USER or HKEY_USERS (root key)
    + Control Panel\International (subkey)
    + read key/write key (security access mask)
    Use 'read registry value simply' or 'write registry value simply' to read or
    to modify 'sDecimal'.
    And remember :
    + to be active in LV, you must restart LV!
    + you should change 'sThousand' also!
    + close the key!
    Regards,
    Wiebe.
    "AIR" wrote in message news:9sdsai$3h3$[email protected]..
    > Hi,
    >
    > One way is to check it:
    >
    > + use the function 'Number To Fractional String' (Sting>String/Number
    > Conversions>Number To Fractional String').
    >
    > + Wire 'True' constant to 'Use System Decimal Point'.
    >
    > + The Output sting will be 0.
    000000 or 0,000000, according to the regional
    > settings.
    >
    > LV updates this only at start, so if you change it in Windows, you have to
    > restart LV!
    >
    > Regards,
    >
    > Wiebe.
    >
    >
    >
    >
    > "jens" wrote in message
    > news:[email protected]..
    > > I have the problem that the Labview program I wrote uses the regional
    > > settings to format numbers to string. I know one can change this in
    > > 6.0 but I am using instrument drivers and the total library has 200 or
    > > more vi in it. I don't have the time to edit all of these. So I would
    > > like to check the regional settings and then inform the user that
    > > he/she may need to change this, or even that the program will remotly
    > > change these settings. Any ideas or example code ?
    >
    >

  • How do I get Windows XP to forget wireless settings

    I've had a perfectly good wireless network for several years using a WRT54GS router wired to my dektop machine. My laptop has connected wirelessly with no problems. I was using WEP security.
    Recently I added a Logitech Squeezebox Duet to the network along with a WRE54G Range Expander. This combination required that I change the security to WPA-TKIP. In order to do this, I ended up giving the network a totally new name and setting it up manually in XP on my desktop using the Windows Wireless Network Setup Wizard. This works for a while, but then at seemingly random times Windows reverts the network back to WEP security. I'd like to go into XP and wipe out all the past wireless network info, but I can't find any way to do it. The Help says there should be a Wireless tab in the Network connections window, but I don't have one. I'm not sure if this is because I have a wired connectioni to the router or because the Linksys router isn't supported or what?
    Any ideas how to clean out all the Windows information, or any other thoughts on getting Windows to forget WEP?

    I'm afraid I may have confused things by jumping to conclusions about where my problem was, so let me start over:
    1. I have a Desktop machine that has a wired connection to my WRT54GS Router/Access Point. The internet connection is through the Router and there is also a wired Network Printer on the network. All of this is working properly in all cases.
    2. I have a Laptop machine that has a wireless connection through the Router. This machine can see and use both the internet and the Network Printer whether my wireless security is set up as WEP or as WPA.
    3. When I set up my wireless security as WEP I can connect from my Laptop to my Desktop and access the Desktop files. I just reverted my security to WEP this morning and confirmed that this is working.
    4. However, when I set my wireless security as WPA, I can not access the Desktop machine even though the internet and Network Printer access is working properly (which must mean the wireless network itself is properly configured).
    I have been assuming that I must set up wireless network access on the Desktop machine in order for my laptop to access it. Is this correct? If so, I have been unable to get WPA security set up using the Windows Wireless Network Setup Wizard. It keeps reverting to WEP. And I have no wireless tab in the Network Connections folder. I need WPA security to get my Squeezebox to work, so I'm stuck.

Maybe you are looking for

  • Copying iPhoto Library to new MacBook Pro

    I have recently bought a new MacBook Pro primarily to use when travelling. I also have a iMac which will continue to be my main mac. I naively thought that by using Migration Assistant I'd be able to copy/transfer all the stuff I have on my iMac (iTu

  • LOGO is not printing correctly in Production but printing correctly in Qual

    Hi Friends, I am an ABAPER. In Scripts I had a logo. Problem is in development and quality systems it is printing correctly but it is not printing correctly in Production system. I have tested all the development, quality & Production systems with th

  • Down load doesn't work

    Please I need some help. I don't why, i can't get download. My iBook G4 was working well, but (I do not the reason) now it is impossivel to get any down load from internet. Could someone help me? Thanks in advanced. Andres Jorge

  • Dynamic watermarking to document

    Hi, I want to water mark the document when i download. I configure IBR server(http://docs.oracle.com/cd/E17904_01/doc.1111/e14495/configibr.htm) i followed all the step as per the link. I am using RIDC to communicate with UCM. I used GET_File command

  • Event name in SAP Portal

    Dear all, I need to know what the different event name for allowin  iViews to communicate with each other and with the portal environment itself . Example EPCM.subscribeEvent("urn:com.sapportals:navigation", "Navigate", pop);                   In abo