Show a minus sign as an output instead of the parentheses

When I save a minus value, the output comes as (500.00). I
think the parentheses are default for the minus value in cf. How
can I display –500.00 instead of (500.00)? I looked at the
numberformat function, but could not find the mask for it.

I think that can be one of the solutions.
However,
the first time when I insert a minus value, it goes through
w/o any problems, but when I update the minus value, i got an error
message. so before I use ur select stmt, I need to have a
conditional stmt to find a parenthesis to check if the value that I
pass to the database is negative or positive. It would be nice if i
can find any cf function to display a minus sign instead of a
parentheses, "( )" for any minus values.
what i did on this issue before saving into database,
<cfif find("(", form.myprice)>
<cfset form.myprice = ReReplace(form.myprice,
",|\$|\(|\)", "", "ALL")>
<cfset form.myprice = "-" & form.myprice>
<cfelse>
<cfset form.myprice = ReReplace(form.myprice, ",|\$", "",
"ALL")>
</cfif>
but I wonder if there are other solutions. thanks
again.

Similar Messages

  • How to use logger to send any output instead of the console?

    How to use logger to send any output instead of the console?

    How to use logger to send any output instead of the
    console?There are three commonly used logger inferfaces, the log4j, the java.util.loging and the Commons logging (which works with either.)
    You create a logger object, generally one for each class. Normally a private static variable points to it and it has a name equal to the FQN of the class.
    e.g.
    package org.widget;
    public class MyClass {
      private static   Logger log = Logger.getLogger("org.widget.MyClass");That's the java.uitil.Logger formula.
    Then there are method on the logger to call for various kinds of output. There' are different logging levels, priorities like SEVERE or DEBUG. When running the logs are configured to ignore messages of less than a set priority.
    You can also pass an Exception or Error to the logger which will log the stack trace.

  • JTree not showing plus/minus signs

    Hi,
    I'm having a strange problem with JTree when implementing my own DefaultTreeCellRenderer: the renderer is shown correctly, but the plus and minus signs are gone!
    My getTreeCellRendererComponent implementation actually creates a new JPanel and returns it instead of the default one. Can that be the problem? How can I make these plus/minus signs come back?
    Thanks, U

    I have seen something a little different on my CustomCellRenderer where the plus minus sign is replaced with some default arrow icon and where it comes from I have no clue. I basically have a 3 level deep tree and its at the B level where this icon appears.
    http://www.matthewscorp.com/images/JTreeError.jpg
    For the life of me I can't figure this one out. I have tried all ideas like set all the renderer icons or the LAF properties icons and still this blue arrow appears. Any ideas would help on both mine and the original poster.

  • I pad apps such as mail and safari show red minus signs and shake back and forth....why?

    In mail the messages come up, but do not open.  Striking the home button twice produces red minus signs above the mail, safari
    apps. etc and they start shaking.   Clicking he "settings" app twice produces the settings page briefly before returning to the home page.
    Pressing the settings app once does nothing.  Prior to opening up the I Pad with these conditions everything worked okay.   Turned it
    off overnight and upon opening the above conditions are there.  Any thoughts and suggestions will be appreciated.

    Tapping the minus sign will close the app and free up some working memory.

  • Why, when I successfully connect to Server 2012 Essentials R2 via Anywhere Access does the Remote Desktop Connection use the self signed certificate for RDP instead of the SSL certificate I installed when I set up access anywhere?

    Scenario:
    Windows Server 2012 R2 Essentials
    I purchased an SSL Cert from GoDaddy and I managed (after some challenges) to set up Anywhere access to use that new SSL Cert. I to rebooted the server and I am able to login to Anywhere Access vis https (using the SSL certificate) from PC, Mac and iOS.
    So far so good.
    The problem I am having is that when I click to launch a remote desktop connection to the server RDP connection wants to use the self signed SSL certificate of the server rather than the SSL Certificate I installed into Anywhere Access. As a result, I get
    a security warning like this: "The identity of the remote computer cannot be verified. Do you want to connect anyway?"
    The name in the certificate appears as ACME-SERVER.ACMEDOMAIN.local  instead of the SSL Certificate I installed, which is
    remote.acmedomain.com
    If I lick to accept, RDP does work fine, it;s just using a self signed certificate. I want it to use the trusted certificate that I purchased and installed.
    My guess is that there must be an additional step to tell Anywhere Access that when it generates the RDP session that it should use the cert? OR, is this just how it works?

    Because....
    the server does not have a 'trusted' certificate assigned to it.
    Only the RDP Gateway has the trusted certificate for the external name.
    If you want to remove that error, you have to do one of the following:
    Make sure your domain uses a public top level domaim, and get a public trusted certificate for your server.
    So, something like,
    server.domain.publicdomain.com
    Or,
    Install that certificate on your remote computer so it is trusted.
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • How do i set my homepage to show when i click a new tab instead of the about: Tabs screen?

    Is there a way to set the homepage to open when one clicks the plus on the tab bar instead of the about: Tabs screen opening?

    New Tab Homepage extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/777

  • Why is my iPod showing a no sign when i drag music into the itunes library and how do i fix it

    when i go into itunes and in my desktops music library, i open itunes and click on on this ipod. when i want to drag my music it wont let me and show a red no sign. my sister has the same ipod but doesnt have this issue. please help me fix it, this has been going on for a little under a year now.

    Do you have iTunes set up to sync manually? That is required to drag and drop
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    Do you have any Restrictions set that would prevent syncing those songs? Settings>General>Restrictions

  • HT4314 Why do I have to go to settings to sign out of GC instead of the app?

    This is so not cool!  My son and I both play games on my iPad.  We shouldn't have to go through settings, when there is a GC app, to change from my sign in to his.  Will this be fixed or is it just another thing to deal with on ios7?

    iPads are designed to be single-user devices.  They are definitely not designed to be shared between two or more folks.
    It makes sense that a single person machine would require you to go to Game Center to sign out.  After all, you (one person) may well be playing two or more games at the same time.  Signing out of Game Center signs you off all games, so naturally, you would have to do this at the Game Center level, not the app level.

  • How to convert trailing minus sign into the leading minus sign

    Hi
    Can any plz tell me How to convert trailing minus sign into the leading minus sign? I mean in PI the amount filed shows like 150.00- i want to convert that into -150.00.
    Thanks
    Govinda

    Hi Shabarish,
    The code works but what if the input is something like [   10.000-] i.e. with some spaces before 10.000- and the output as per your code comes as [-     10.000]. How do we tackle such cases if there is inconsistency in data i.e. some values come as [    10.000-] i.e. spaces before the number and some values as [12.000-].
    The output of this will come as
    [-    10.000]
    [-12.000]
    How to make it as
    [-10.000]
    [-12.000]
    Regards,
    Shaibayan

  • I increased my font with zoom for the first time & got it too large. It will not decrease using Control & minus sign.

    I use Firefox 4. Windows XP. I have tremors & must have accidentally clicked on something that made it open up with weird colors like it was in safe mode. It was in 8-bit so put it back on 32-bit and 1280 x 1024 pixels. Then the font was so small it is almost unreadable. Tried to change it in Firefox Tools, Options, & Content. This did not work. I then used Zoom after checking in Help but got the font so large I can't view my email right. It will not decrease when trying Control with the minus sign as suggested.

    Did you change the resolution in Control Panel > Display ?
    What is the native resolution of your video display (monitor)?

  • Apps show a white square instead of the app picture?

    My ipod touch shows some apps as a white square instead of the app picture.  The app still works but I don't
    know why it is diplaying this way.

    Where is your Calculator application located? Before you can put it into the Dock you need to remove the Question Mark. Select it with the mouse and drag it out of the until it "poofs" away. Now locate Calculator and drag its icon into the Dock.

  • Incorrect plus/minus sign in MB51

    Hi All,
    In MB51 report we are getting an incorrect minus sign in the display. When I run the report for mvt type 102 the quantities are displayed in RED color but the minus sign after it is missing. The sustem is considering it as plus.
    What could be the problem?
    Regards,
    V S

    check SAP notes.
    e.g. OSS note 1317700 Incorrect plus/minus signs in display for transaction MB51
    and  Note 1319863 - Incorrect plus/minus signs in display for transaction MB51
    if you cant find any that fits to your system, then open an incident at SAP yourself

  • Can the license manager load the computer-based license first, instead of the user-based license?

    We have several machines in the lab with computer-based licenses on them and a number of techs with user-based licenses. When a tech needs to occassionally sign in as themselves, instead of the generic service account, the license manager attaches the machine to their user account. Not a problem until they try logging in to LabVIEW from their own PC again and they get the 14 day trial period notice.
    Is there a way to have the license manager look for the computer license first instead of the user license?
    Thanks for any help.
    Joe
    Solved!
    Go to Solution.

    Hi Joe,
    In the license file hosted on the license server, you may be able to manually change the "sort" tag in the file to modify the order in which VLM checks out licenses. Licenses are checked out in descending order (2, then 3, then 4, etc.). Typically, your license file is set up in a default order, but in special cases such as this, it may be beneficial to alter the order. To do this, follow these steps:
    1. Open the license file with a text editor (such as Notepad)
    2. Search for the "sort" tag. For instance, the "VLM_Core" entry will have a sort tag value will appear as "sort=first". Do not alter this value. VLM_Core should always be first.
    3. Change the sort tag value for the named-computer license to a value that is lower than the sort tag value for the named-user license. (e.g. "sort=2" for named-computer and "sort=3" for named-user). 
    4. Save the file and reinstall the license. 
    Let me know if you have any questions!
    Rick C.

  • HT5137 I updated to ios7.0.2, when I double click on home button it brings up an app list but when I hold my finger on an icon it won't show any with a minus sign, is it no longer necessary to close apps?

    In ios 7.0.2, when you double click the home button it brings up the icons but won't allow you to show them with minus signs, is it no longer necessary to do this?

    jim96776 wrote:
    is it no longer necessary to do this?
    It was never necessary except in certain unusual circumstances.

  • MINUS SIGN IN FRNT OF AMOUNT INSTEAD OF LAST

    HI
    I want minus '-' sign  in front of amount
    currntly it is showing 12345.45-
    but i want -12345.45.
    pls help me on this
    Regards
    Rajan.

    >
    prashanth kishan wrote:
    >
    Can you send me a sample code
    > Fortunately or unfortunately, it never came
    >
    > pk
    Cause i gave him a hint to use SPILIT also
    May be other wise he would come
    Cheers

Maybe you are looking for

  • Grep for a particular entry in the file name

    Dear all, I have a folder with following list of files with names like amg-9876544-M37421-3000282.PDF amg-9876544-M37408-3000457.PDF amg-9876544-M37488-3000260.PDF amg-9876544-M37481-3300063.PDF amg-9876544-M37454-3000675.PDF amg-9876544-M37543-30006

  • Error in creating Document versions

    Hi All, I am working in SAP ERP 6.0 EHP 4.0 system. I have problem in creating new document versions. I create a document with functional location and specify the mpd cycle. Then when i try to create a new version by copying the contents created from

  • Moving-Intergrating CCM/Unity 3.X cluster to 4.2 cluster

    We are working on incorporating or upgrading a 3.2 cluster to 4.2. for CCM and Unity. Can we BAT the profiles User/Devices from one to the other. Also what are some of the challenges that we may encounter.

  • Mail A Report !

    Dear all, consider the following situation. I have generated an ALV report, now there is a requirement in which this report ( ALV report ) should be mailed to a certain group of people. Is there something such as a mailing service which can be used h

  • Exremely high (98%) roll wait time

    I am running a ECC 6.0 EHP4 server in solaris 5.10 OS, Oracle 10.2.0.4. My users experience extremely high roll wait time when they execute transactions like PA20/PA30. It took about 20 minutes for it to load. I ran stad and found out the majority of