Click here to Skip to main content
13,097,230 members (57,543 online)
Rate this:
Please Sign up or sign in to vote.
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 14-Dec-12 0:07am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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!
VitorHugoGarcia 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 :)
01010RAJ 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!
01010RAJ 14-Dec-12 6:52am
somebody down voted ur answer,i don't know why?
according to me,u have given right answer so,by me+5
Aarti Meswania 14-Dec-12 6:56am
it's okay
i had forgot to write 2nd idea first time when i posted answer, but then as VitorHugoGarcia post comment, I just got that second way which was missing... and then I edit this answer
thank you for vote me up :)
01010RAJ 14-Dec-12 7:01am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100