Results 1 to 4 of 4

Thread: How to convert negative values from php to positive

  1. #1
    Join Date
    Apr 2009
    Posts
    51

    How to convert negative values from php to positive

    I wanted to import the data in Excel 97 which contains a field called DetailAmount. All numbers are in positive. It should happened in the runtime that when the user enter negative value and when i store into variable(type Double) then I should convert to positive value. Could anyone PLease give me some tips.

  2. #2
    Join Date
    Dec 2008
    Posts
    183

    Re: How to convert negative values from php to positive

    Create a singleton Administrator object with a method public boolean isAdministrator(). If you in your MainFrame class want to refer an object then that objects scope must cover the method(s) where you want to reference the object. This you may also achieve by using the IF methos as follows:

    If NegativeValue < 0 then
    NegativeValue = NegativeValue * -1
    End If

  3. #3
    Join Date
    Jan 2009
    Posts
    96

    Re: How to convert negative values from php to positive

    All you need is an object with a reference to both frames or both tables. If you add another parameter then the method signature (its name and its parameter types and sequence) is not the ActionListener interface implementation. Any objects interested in the login status of the Adminstrator register themself at that object and change their state accordingly when they receive an event.

  4. #4
    Join Date
    Apr 2009
    Posts
    51

    Re: How to convert negative values from php to positive

    I've tried inserting your expression into a query grid, but it's not working. In the constructor of this class, I created a new user by User user = new User(). I also tried to insert a minus sign (-) at the far left of the number I need to change to a negative, but it doesn't work either.

Similar Threads

  1. Endless Space game positive and negative points
    By Angud in forum Video Games
    Replies: 5
    Last Post: 14-07-2012, 11:47 AM
  2. Acer Iconia A700 positive and negative points
    By --MasseySian-- in forum Portable Devices
    Replies: 6
    Last Post: 28-06-2012, 06:48 PM
  3. Sony Xperia P negative and positive points
    By cech in forum Portable Devices
    Replies: 5
    Last Post: 23-05-2012, 05:20 PM
  4. Replies: 3
    Last Post: 25-02-2012, 11:25 AM
  5. How to Convert Film Negative to Positive Photos
    By Aarya in forum Customize Desktop
    Replies: 3
    Last Post: 03-07-2009, 02:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •