Currency Formating for a Input Textfield (ASP)

I am using Dreamweaver CS3 and VBScript coding.  I have a regular text field where the user will be entering in a dollar amount and ultimately I want a user to enter in 5000 and when they hit tab to the next field I want that number to appear as 5,000.00.  Searched the forums for a while and there where different variations but none answered this questions.
Thanks

I don't use that language, but it looks as if FormatNumber() is what you're looking for.
http://www.w3schools.com/vbScript/func_formatnumber.asp
Mark A. Boyd
Keep-On-Learnin' :-)
If you are reading this via email, be aware that it may not be an accurate representation of my message. Login to read the actual message and/or to reply.

Similar Messages

  • Change currency format for my Locale

    The default currency format for my locale (es-AR) formats negative currencies like this:
    ($1.232,23)
    I'd like to change it to
    $-1.232,23
    Any ideas on where to start? Where is that format option stored? In windows the currency format is the latter, and I can change it, but Java uses its own... (right?)
    Thanks for your help.

    Thanks, I found the javadoc that sais that.
    If you need to customize the format object, do something like this:
    NumberFormat f = NumberFormat.getInstance(loc);
    if (f instanceof DecimalFormat) {
         ((DecimalFormat) f).setDecimalSeparatorAlwaysShown(true);
    I think it would be nice to be able to customize a Locale information... to avoid the above code and have a more general solution.
    Thanks anyway, if you think of anything else, let me know.
    Bye.

  • Date Format for the input Variable

    Hi all,
    I got an issue with Date format we enter in the input variable screen for the BEx Analyzer.
    We have given a format of MM/DD/YYYY. But when the users accessed the report, it is not taking the format of the variable i.e MM/DD/YYYY but it is taking the format of the users system.
    If the user's system format is DD/MM/YYYY, it is accepting the input inthe same format only.
    Why this strange behaviour?
    My questions are
    Is the input for BEx system specific? or variable specific?
    Rgrds
    Kumar

    Hi,
    I think it is user specific... you can maintain the date format for user ....
    Go to SU01 transaction or.. Go to SYSTEM -> User Profile -> Own data
    Here in defaults tab you can see the date formet for user...
    Hope this helps...
    Thanks,
    Vikrant Mahajan

  • How do you change the date/currency format for every user in OSX 10.6?

    I imaged a bunch of mac labs at work only to realize the base image has the date/currency set for United States rather then United Kingdom. The regional settings are correct.
    I tried changing it on the local admin account but it does not affect a new user that logs onto an AD account.
    Workgroup manager does not seem to offer anything either unless I am missing it.
    Any ideas?

    Hi Uncle,
    Page 116 of the Pages'09 User Guide: Control Click the date, Edit Date and Time.
    Date and time can also be in a table. Format the table cell.
    The User Guide is well worth a read. Download it from the Help menu in Pages.
    Regards,
    Ian.

  • Currency format for locale de_CH

    Hello,
    One of my customers has told me that
    "Here in Switzerland, currency amounts with 0 cents are written with a long dash, 4.-- instead of 4.00."
    It seems that Java doesn't know it. If I'm using the de_CH locale, I will always get 4.00. How can I achieve this with Java besides replacing .00 with .--? Could this be a bug?
    Here's a small test. The result is
    SFr. 1'234.00
    but the right result should be
    SFr. 1'234.--
    private static void test() {
         Locale locale = new Locale("de", "CH");
         NumberFormat format = DecimalFormat.getCurrencyInstance(locale);
         Currency currency = Currency.getInstance("CHF");
         format.setCurrency(currency);
         BigDecimal amount = new BigDecimal("1234.0");
         String value = format.format(amount.doubleValue());
         System.out.println(value);
    }Thank you for your time,
    Nicu

    Thank you all for taking the time to answer.
    I did a quick check on a large Swiss company page (the Swiss Post) and here's what they say:
    "Withdraw cash at the post office counter free of charge up to CHF 4'000.- per withdrawal."
    They use the same convention. A dash instead of zero. Here's the link: http://www.postfinance.ch/pf/content/en/seg/priv/pay/card/pcd.na_priv.html.
    Here's another link that explains the same thing: http://elearning-uk.myswitzerland.com/index.php?SN=pv5qudaru57ilcsdvbftcm7cs1&ac=user_seminar_view&cid=60&pid=255.
    Unfortunately, I don't know how I could specify such a format in Java. The only solution I came up with was to replace zeros with a dash if the locale is de_CH. But that's not quite elegant.

  • How to get a currency format for a character field

    for some specifix reason, we have a requirement to show character field (which results in value 633948) in the format $633,948
    how do i do this?
    if i do SELECT to_char(:c_1,'$999,999')) from dual;
    it gives me ora: 01722: invalid number error
    c_1 is a user parameter of data type character

    Try using TO_NUMBER first, as in something like:
    SQL> VARIABLE c_1 VARCHAR2(6)
    SQL> EXECUTE :c_1 := '633948';
    PL/SQL procedure successfully completed.
    SQL> SELECT TO_CHAR(TO_NUMBER(:c_1), '$999,999') FROM DUAL;
    TO_CHAR(T
    $633,948Hope this helps.

  • Best format for iMovie input: DV or AppleIntermetiateCodec

    I thought (and I think I read here several times) that the best input for iMovie, if you use a MiniDV camcorder, was to import the DV files into the app.
    Now I have read an article ( http://imovietricks.blogspot.com/ )where it is said that iMovie does not properly work with those files and that a previous conversion to AppleIntermediateCodec should be give better quality.
    Can someone give more information about this subject?
    I think is a very interesting subject not only for the quality but because AppleIntermediateCodec files are half the size as DV files which make them more easily stored.

    I have only DV camera and this issue is very important to me. I have read probably all the threads about it and have seen no solution. I even bought an e-book from a guy who said here that he knows the solution (but didn't of course open the secret here in forum) and guess what he recommended in his book? To convert the files to AIC.
    As there have been so many discussions about it then I wouldn't say that iMovie works perfectly well with DV. Even Macworld mentioned this in their review of iMovie '08:
    +"...The bad news is that in order to get this real time performance without renders or progress bars, there is some sacrifice in quality. For interlaced video such as DV and 1080i HDV, iMovie now uses single-field processing. This means every other horizontal line of the video is thrown out, which reduces the sharpness of the footage..."+
    http://www.macworld.com/article/59668/2006/12/imovie08.html
    Sorry, but I have difficulties believing anyone who claims that iMovie '08 handles DV fine. If all these reports were wrong and iMovie really could give full quality from DV then Apple would have refuted such reports (especially ones by popular magazines like Macworld) and given some guidelines.

  • Currency format in LAC

    Hi,
    We are working with LAC, and we have an issue.
    When we create an auction in SRM the currency format for the start price and the others is 1,234,567.89 (this is correct for us), but when we execute the applet (LAC) the format change 1.234.567,89
    The user in SRM has the correct format 1,234,567.89 then, Why in the applet the format is different????
    How can we change the format????
    We are working with EP then, we execute the transaction  bbp_auction since a Portal iview. Our single sign On between LAC and Portal was configurated, then we guess, we need to change the currency or number format in the Portal User, Is that correct?????
    What user do we need to change (currency format)????   SRM user????  Portal user???? LAC user????
    Thanks

    Hi Claudia,
    Check the following note :
    Note 666849 - Running LAC in non-US locales
    This may help you.
    Thanks,
    Pradeep.

  • Import format for two amount columns in different currencies

    Hello,
    I am working on FDM 11.1.1.3 and will be getting the trial balance containing amounts in two currencies (both local and USD). I need to load data in both the currencies. The extract has two columns for the amount rather than having two different rows for different currencies. Any ideas how to define this format and how to load data. We are not using the translation logic and hence the amounts in both currencies are required.
    Thanks for your help in advance.

    Hi Tony,
    Thanks a lot for the input. Any idea, how should I go about doing this else if you have any documentation, let me know. Also, what are the cons of doing it this way over requesting the customer to get the file with amounts in different rows than in different columns

  • Where does one manage date formats for display and input

    the user specification is that dates be displayed as YYYY-MON-DD. Is there a config or properties file which contains the date format for display? Is there a calendar drop-down that can be positioned next to a date input field for a question on a screen?
    Thanks,
    Allan

    Hi Allan,
    Curious why the rule project wasn't created with "English (Canada)" initially? If your project is English (UK) with the default configurations for that locale, then I assume your currency values are appearing in OWD with the GBP symbol (£) instead of a dollar sign ($)?
    As for the impact of switching… I highly recommend getting confirmation from the OPA Dev team before doing it, but in the meantime, if you wanted to experiment on your own with a separate test rulebase (as opposed to whatever formal rulebase you're working on), here are my observations from an initial look… (FYI, I'm an experienced OPA rulie, but I'm non-technical and not in the Dev team, so best to check with them!)
    I poked around the language parser files and saw that English (UK) has an English (UK) verb list, whereas English (Canada) uses the English (US) verb list. The vast majority of verbs are identical in all the variations of English, however, there are a couple which differ. So if you've used any verbs which have a different spelling between the 2 lists, there may be some attribute text to tweak, e.g.
    - English (UK): the person travelled to Australia
    - English (US): the person traveled to Australia
    - English (UK): the person cancelled the reservation
    - English (US): the person canceled the reservation
    I saw some other different files between English (Canada) vs English (UK), but didn't notice anything in them which I'd expect to impact the rulebase.
    As for how it might impact other components:
    * screens file and the properties file – May be some tweaking depending on how you addressed the verb spelling issue above.
    * regression test files – May be some tweaking depending on how you addressed the verb spelling issue above.
    * messages.(locale).properties – The default messages.(locale).properties file appears to be based on the Language setting of the Project. I just tested this and OWD used a different messages.(locale).properties file when I changed the Project Language (OPM | File menu | Project Properties | Common Properties | General | Language).
    * Siebel Connector – don't know what the impact would be.
    OPA Dev team – Can you review what I've said here? And add any relevant further detail?
    Cheers,
    Jasmine

  • Why does a digital indicator formatted for time & date add 16 hours to the input?

    I wire a digital indicator with a double precision value that is supposed to indicate an elapsed time. But the indicator (formatted for time and date, with the date inactive) always adds 16 hours to the wired input.
    This problem occurs even in a simple vi I wrote that only consists only of a constant wired to the indicator.
    Using LabView 6.0.2

    Labview interprets the number passed into an indicator formatted for date & time as seconds since Jan. 1st 1904. I'm assuming that since you're looking for elapsed time this is not what you're passing in. One thing that I've done is get the elapsed time in seconds and write a routine to convert that into whatever format you want.

  • Information required for all currency formats settings.

    I need information in Web Dynpro Java for currency format.
    currently I have following fields in application:-
    1.Wrbtr Amount in document currency
    2.Waers Currency Key
    In local dictionary I could see Amount type as simple type in external representation I could see #,###.00## format.
    This format has a problem with Yen currency that if ECC shows 1000.00 then Portal shows only 100.00.
    Please let me know how dictionary works about pair of keys an values of above fields.
    Please let me know solution of this problem.
    Higher points will be rewarded for immediate solution and appericated also.

    Hallo Laxmikant,
    to correctly format BigDecimal price values depending on a given currency YOU MUST apply structure binding:
    - define a dictionary structure with a currency field AND an amount field and relate the amount field to the currency field.
    - bind a context node to this structure so that the context attributes are created from the sturcture fields.
    In this way the Java Dictionary Runtime will correctly format the decimal places for the amount depending on the given currency key (see ISO 4217). For the Jordanian Dollar JOD three decimal places are rendered, for the Japan Yen (JPY) zero.
    Look at this [Table Tutorial|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20tutorials%207.0/web%20dynpro%20sample%20applications%20and%20tutorials.htm#46] which applies the sctructure binding and currency-formatting technique.
    With your formatting pattern approach on simple type level you cannot adapt the formatting pattern for different currencies.
    In NW CE 7.1 you can use the new CCTS-datatype Amount.
    Regards, Bertram

  • Imovie 11 file format for input??

    what about all my mog and wmv files....they do not show up?
    do I need to convert all of the clips (again) ??

    Hi,
    I found the input file format for ETM Catalog after debugging the program.
    Hope , this solution might be useful to someone.
    Sol:
    Note:
    1)There must be a TAB after each field entry in a row.
    2) Data type #1 is mandatory in each row , where as Data types #2 , #3 are optional.
    File Structure:
    #1<TAB>Catalog No<TAB>#2<TAB>Characteristic Text<TAB>BOM Text<TAB>#3<TAB>Characteristic Value
    #1<TAB>Catalog No<TAB>#2<TAB>Characteristic Text<TAB>BOM Text<TAB>#3<TAB>Characteristic Value
    Thanks
    Prasanth Reddy.

  • Output Format for Currency

    Hi There,
    I have set defaults as '1,000.00' for currency output in the own data but in the output of report it is showing like '1.000,00'.
    PS: there is no formating statement in the program as well.
    Any advice friends, how can I make it in required format.
    Regards,
    Shabbar

    HI ali ,
    yeah u can do thi sin scripts ..
    take a look at this ..
    Country-Dependent Formatting: SET COUNTRY The formatting for certain field types depends on the country settings. These field types include, for example, date fields and number fields that include either a decimal point or the ‘thousands’ separator character. The formatting options defined in the user master record are usually the ones used here. To choose a formatting option other than the one specified in the user master record, use the SET COUNTRY control command. The country-dependent formatting options are stored in the T005X table. Syntax: /: SET COUNTRY country_key You can enter the country key either as a literal value enclosed in quotes or as a symbol.
    /: SET COUNTRY 'CAN' /: SET COUNTRY &country_key& Use a blank country name to revert to the setting found in the user master record: /: SET COUNTRY ' ' This SAPscript command actually calls the corresponding ABAP command internally. This guarantees the effect of the SAPscript command to be identical with that of the ABAP command
    regards,
    VIjay
    Message was edited by:
            vijay k

  • Input textfields for arabic language with Flex

    Hi!
    I would like to know how flex work with arabic language. Does
    it permet to write text correctly in input textfield, or is ti the
    same problem as in Flash 8 Pro ?
    Thanks for your help
    Damien

    The Flash Player itself does not easily support right-to-left
    text manipulation.
    We all hope this will be addressed in an early future
    version, but there have been no announcements.
    Tracy

Maybe you are looking for