Skip to Content
author's profile photo Former Member
Former Member

addition on alpha numeric field.. please help urgentt......................

Hi friends,

I have a problem on addition for alpha numeric value.

I have a table with values could be like ex: A00300. I want to get the max of this field, and add 1 to it to get next maximum value for inserting a new record.

like : A00300 + 1 = A00301( my expected value).

Kindly reply this to me, pleaseaaaaaaaaaaaaaaaaa..

Robin......

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 01, 2008 at 10:31 AM

    Hi,

    Use javascript and split the value to characters and numeric. Add the new value to numeric and concatenate this the character value , then populate into the table.

    var a = 'A00';
    var n = 300;
    n = n+1;
    
    var result = a+n; // value = A00301

    Regards

    Srikanth KV

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.