#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    19
    Rep Power
    0

    add alphabets to a string


    i need to check if a name(string) is already in database and if it is in, i need to add alphabets from A to Z at the end of the name, how do i do so?

    After i append the name, i need to check again to see if the added name already exist too.

    thanks...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13
    i need to check if a name(string) is already in database and if it is in, i need to add alphabets from A to Z at the end of the name, how do i do so?
    you may want to clarify a bit...

    you want to add all the characters from A to Z, a random set of say 4???
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    19
    Rep Power
    0
    i need to add only one alphabet at the back if it exist. for example, Micheal Brown already exist, then i add A to it and it becomes Micheal Brown A, then if Micheal Brown A exist then i add B and it becomes Micheal Brown B..
  6. #4
  7. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    19
    Rep Power
    0
    does anyone knows??? pls help...

    thanks...
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    1
    Rep Power
    0
    I think this should be pretty simple with a loop or a couple of nested loops. You could make a String or char[] with the letters of the alphabet, and append "i" char to the end of your original string as you loop through. You can define a global boolean and use that in your outer while loop condition. Then, your inner loop can set a boolean variable appropriately for what it finds.
  10. #6
  11. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    19
    Rep Power
    0
    can u show me the codes???

    thank you so much..

IMN logo majestic logo threadwatch logo seochat tools logo