October 1st, 2002, 04:25 AM
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.
October 1st, 2002, 11:22 AM
you may want to clarify a bit...
you want to add all the characters from A to Z, a random set of say 4???
October 1st, 2002, 07:28 PM
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..
October 9th, 2002, 10:43 PM
does anyone knows??? pls help...
October 10th, 2002, 09:14 AM
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.
October 10th, 2002, 10:05 PM
can u show me the codes???
thank you so much..