Heylo All,
Very new to RB and programming in general (well, some HTML and XML), so
I may not even ask the question right but will try.
I have written an app that will create an XML file that can then be
imported into Mac OS X Server from a tab-delimited file by importing or
generating the necessary data from two to seven fields. One of the
tasks is to generate a user short name from two fields (first name,
last name) based upon the number of characters assigned by the user.
For instance if the first name is Michelle and the last name is
Anderson; the user asks to generate the short name using the first five
characters of the last name and the first three letters of the first
name; the short name would be andermic. I have all of that working
just fine. My problem is what to do when I have Michelle Anderson,
Michael Anderson and Mickala Anderson all in the same list (real people
in a local school). Mac OS X does not allow duplicate short names and
they would all be andermic. I would like my app to compare the short
name generated and if a duplicate change the last character to a number
1, 2, etc as needed.
I don't know if it is common practice to include sample source code or
a copy of my project when posting questions. So please let me know if
more info is needed.
Any and all help will be greatly appreciated.
Thanks and Have A Great Day.
Rick Davis
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.
|