Click here to Skip to main content
15,891,660 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Is it possible to make a function by which:
if user entered his/her name
then in combobox Gender will be dynamically change according to name.

I know this is weird question,but just i m thinking about it.
Posted

1 solution

1. by name it is not realistic idea to prepare function because...
lots of names and lots of criteria...
how can you make this?
example... kiran it can be name of male or female

there are not rules that one of these gender name will start with some particular letter or end with some particular letter...

after some database is filled with name
if some one register with same name available in database then you can fire a query base on analysis summary.
example aarti it is already entry in database having same first name then fetch it's saved gender and set it...


2. check prefix for like Mr./Miss/Mrs. and set related gender

Happy coding!
:)
 
Share this answer
 
v2
Comments
_Vitor Garcia_ 14-Dec-12 6:36am    
this is not a solution as far the question isn't , as is, solvable.
Aarti Meswania 14-Dec-12 6:39am    
i know by detecting mr. / miss/ mrs
Aarti Meswania 14-Dec-12 6:58am    
thanks for make me think for another way to solve it
it was easy but i forgot to post
thank you again!
good day :)
StackQ 14-Dec-12 6:49am    
Thnx for help...
i know answer,as u explained here.I just posted this question,perhaps i will get something new.But i know it's difficult,mainly in india,as u explained Kiran (I thought same,with the name kiran.It's really difficult)

But u have given me a clue by mr/miss/mrs .It can be one solution.
Aarti Meswania 14-Dec-12 6:52am    
welcome :)
Glad to help you!
:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900