chdboy's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Active Members
Active Posts:
128 (0.2 per day)
Joined:
26-July 12
Profile Views:
625
Last Active:
User is offline Nov 27 2013 06:17 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   chdboy has not set their status

Posts I've Made

  1. In Topic: How to make Integer number increment by 1 in a JTextField?

    Posted 27 Nov 2013

    After inserting into Table I have used this code for generating next file number.
    int fileno1=Integer.parseInt(Result.getString(2));
        int increment = ++fileno1;
        int increment2 = ++increment;
        filenotxtfield.setText(Integer.toString(increment2));
    

    And it is working fine now.

    Admin please mark this thread solved.
  2. In Topic: How to make Integer number increment by 1 in a JTextField?

    Posted 23 Nov 2013

    I'm able to display the value after data is saved, but it is showing me wrong value with this code.

    int fileno1=Integer.parseInt(Result.getString(2));
    		int increment = ++fileno1;
    		String convertno1=String.valueOf(increment);
    		filenotxtfield.setText(convertno1);
    

    If 1 and 2 file no already exists after entering 3rd number manually and then save it ,it is showing me 2 not 4.?
  3. In Topic: com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY

    Posted 23 Nov 2013

    The problem is solved ...there was some extra curly braces which were causing the problems.
    Thank you all for your time.

    ATTEN ADMINSTRATOR:
    Please mark this thread solved.
  4. In Topic: com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY

    Posted 22 Nov 2013

    No I'm inserting one row only ...with the blank form open and then fill it up ,then hit save button ,error shows in console and after I see in MSM new row is there.
    With a different file no which is my P_K.
  5. In Topic: com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY

    Posted 22 Nov 2013

    No that new data is present after I execute my code(double checked it)before that there was no data present,and my P_K is file no and it's not a duplicate.

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

chdboy hasn't added any friends yet.

Comments

chdboy has no profile comments yet. Why not say hello?