-
Jan 4th, 2022, 07:53 AM
#1
Thread Starter
Hyperactive Member
-
Jan 4th, 2022, 07:56 AM
#2
Re: I want to ask the user to login only English text ??
Originally Posted by Mysystem
Hi..
So what exactly are you wanting? Do you wnat to limit the input? Display a message? What? Give as much detail as possible when asking a question, not a screenshot and virtually no words. This question is almost an identical starting point to https://www.vbforums.com/showthread....mber-in-a-Text anyway, is there anything in your previous thread that might be relevant here?
-
Jan 4th, 2022, 08:25 AM
#3
Thread Starter
Hyperactive Member
Re: I want to ask the user to login only English text ??
Originally Posted by PlausiblyDamp
So what exactly are you wanting? Do you wnat to limit the input? Display a message? What? Give as much detail as possible when asking a question, not a screenshot and virtually no words. This question is almost an identical starting point to https://www.vbforums.com/showthread....mber-in-a-Text anyway, is there anything in your previous thread that might be relevant here?
Yes I want to limit the input only English ?
-
Jan 4th, 2022, 08:51 AM
#4
Re: I want to ask the user to login only English text ??
Then place a label above the textbox with it's caption "Only English allowed"
But you already asked the same question in a previous thread.
-
Jan 4th, 2022, 11:08 AM
#5
Re: I want to ask the user to login only English text ??
Originally Posted by Arnoutdv
But you already asked the same question in a previous thread.
It's different. This one is about login in English and the previous one was about the password (in English).
cheers,
</wqw>
-
Jan 4th, 2022, 11:33 AM
#6
Re: I want to ask the user to login only English text ??
Originally Posted by wqweto
It's different. This one is about login in English and the previous one was about the password (in English).
cheers,
</wqw>
That isn't really different both are about entering data into a text box. It doesn't matter if it is a login, a password, the name of your favorite sports team or whatever.
As for (in English) I really don't know what you mean by that. Are you saying that you want to confirm that what they enter is a valid word in the English language or are you simply talking about normal ASCII Alpha characters?
-
Jan 4th, 2022, 12:05 PM
#7
Re: I want to ask the user to login only English text ??
Originally Posted by DataMiser
. . . I really don't know what you mean by that.
It means I made a mistake entering such serious thread where the serious coding efforts are happening and everyone knows what they're talking about. . . NOT.
Will be leaving now, just unsubscribed the thread.
cheers,
</wqw>
-
Jan 4th, 2022, 12:18 PM
#8
Re: I want to ask the user to login only English text ??
I'm interpreting it as "limited to ASCII only", but that's just my assumption. Maybe he/she just wants alpha/numeric, or maybe just alpha, or maybe just upper-case alpha.
Mysystem, if it were me, I'd do it by monitoring the KeyDown, KeyPress, KeyUp events, putting some code in there that forced my limitations. And I'd also make sure the textbox was labeled well, telling the user what I was expecting.
Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.
-
Jan 5th, 2022, 06:59 AM
#9
Re: I want to ask the user to login only English text ??
Yeah, this is really a difficult thread to post anything logical. OP---we don't know what you mean by 'English only". As you are PROBABLY aware, usernames can be made up of all sorts of ASCII characters. Unfortunately (???), there are several world languages other than English which can be searched with ASCII...Arabic, and Chinese 'letters', for example, are NOT ASCII (in almost all instances). And usernames may or may NOT be an actual 'word' (as found in dictionaries), so to check English dictionaries would be fruitless (and could be time consuming at best). SO, what DO you mean by 'English Only'?
I assume you really don't want to try to restrict entries to English (IMHO, it would be virtually impossible). And to even SUGGEST using English would seem foolish.
Is what I am telling you, logical?
Sam I am (as well as Confused at times).
-
Jan 5th, 2022, 09:38 AM
#10
Thread Starter
Hyperactive Member
Re: I want to ask the user to login only English text ??
Originally Posted by SamOscarBrown
Yeah, this is really a difficult thread to post anything logical. OP---we don't know what you mean by 'English only". As you are PROBABLY aware, usernames can be made up of all sorts of ASCII characters. Unfortunately (???), there are several world languages other than English which can be searched with ASCII...Arabic, and Chinese 'letters', for example, are NOT ASCII (in almost all instances). And usernames may or may NOT be an actual 'word' (as found in dictionaries), so to check English dictionaries would be fruitless (and could be time consuming at best). SO, what DO you mean by 'English Only'?
I assume you really don't want to try to restrict entries to English (IMHO, it would be virtually impossible). And to even SUGGEST using English would seem foolish.
Is what I am telling you, logical?
--------------------------------------------------------------
hi
Yes, the goal of my question is how to impose conditions on the user !
-
Jan 5th, 2022, 09:45 AM
#11
Re: I want to ask the user to login only English text ??
Originally Posted by Mysystem
--------------------------------------------------------------
hi
Yes, the goal of my question is how to impose conditions on the user !
What conditions though?
-
Jan 5th, 2022, 12:25 PM
#12
Thread Starter
Hyperactive Member
Re: I want to ask the user to login only English text ??
Originally Posted by PlausiblyDamp
What conditions though?
-----------------------------
hi
I want the user to enter
writing in text
only English
-
Jan 5th, 2022, 01:00 PM
#13
Re: I want to ask the user to login only English text ??
Originally Posted by Mysystem
-----------------------------
hi
I want the user to enter
writing in text
only English
What do you mean by "only English" though? Just characters in the English alphabet? ASCII characters?
-
Jan 5th, 2022, 01:10 PM
#14
Thread Starter
Hyperactive Member
Re: I want to ask the user to login only English text ??
Originally Posted by PlausiblyDamp
What do you mean by "only English" though? Just characters in the English alphabet? ASCII characters?
------------------------------------------------
letters and words
-
Jan 5th, 2022, 01:12 PM
#15
Re: I want to ask the user to login only English text ??
Originally Posted by Mysystem
------------------------------------------------
letters and words
So only valid English words, as found in an English dictionary?
-
Jan 5th, 2022, 03:20 PM
#16
Re: I want to ask the user to login only English text ??
Originally Posted by Mysystem
------------------------------------------------
letters and words
If by login you mean username, then you have to take into account different keyboard layout languages, and convert their language's character's unicode to a usable format. They may not have the option to convert their keyboard to English, simply because they can't install an English pack, or just don't know where to start to be able to enter English text.
Last edited by Peter Porter; Jan 5th, 2022 at 03:24 PM.
-
Jan 5th, 2022, 10:42 PM
#17
Re: I want to ask the user to login only English text ??
Usernames are not GENERALLY 'words' one would find in an English dictionary. Many will have numbers (an ASCII number) as well (example: SamBrown2022). A username (as far as I know) is also restricted to ONLY letters and numbers (and maybe a dash or period); but a space or a backslash, or a comma, for example, would not be allowed. As this is YOUR program, how does one initially GET a username? Is this form you are creating supposed to be the start of some sort of registration?
Are you REALLY concerned with Arabic or Chinese (etc) not being allowed as a username? If so, why?
So, you see, trying to restrict to "ENGLISH" is far more complicated than you think it is. If I were creating a form for someone to create a username, I'd write it IN ENGLISH and 'politely' inform the potential user to use only English letters (upper or lower case should not matter if you code a check correctly), numbers and possibly underscores, dashes, bangs (upper case 1 on a keyboard). All of those can be checked against an ASCII chart (of course you CODE that 'conversion' when checking entries). As YOU are coding this, you can restrict a username to whatever you desires, but keep in mind the pitfalls with things like the ampersand, carots, commas, quotes, etc etc etc.
I guess the REALLY question to ask, is WHY? Along with, What language(s) are you targeting? '
(Is this some sort of HOMEWORK assignment???)
Sam I am (as well as Confused at times).
-
Jan 6th, 2022, 09:09 AM
#18
Thread Starter
Hyperactive Member
Re: I want to ask the user to login only English text ??
Originally Posted by SamOscarBrown
Usernames are not GENERALLY 'words' one would find in an English dictionary. Many will have numbers (an ASCII number) as well (example: SamBrown2022). A username (as far as I know) is also restricted to ONLY letters and numbers (and maybe a dash or period); but a space or a backslash, or a comma, for example, would not be allowed. As this is YOUR program, how does one initially GET a username? Is this form you are creating supposed to be the start of some sort of registration?
Are you REALLY concerned with Arabic or Chinese (etc) not being allowed as a username? If so, why?
So, you see, trying to restrict to "ENGLISH" is far more complicated than you think it is. If I were creating a form for someone to create a username, I'd write it IN ENGLISH and 'politely' inform the potential user to use only English letters (upper or lower case should not matter if you code a check correctly), numbers and possibly underscores, dashes, bangs (upper case 1 on a keyboard). All of those can be checked against an ASCII chart (of course you CODE that 'conversion' when checking entries). As YOU are coding this, you can restrict a username to whatever you desires, but keep in mind the pitfalls with things like the ampersand, carots, commas, quotes, etc etc etc.
I guess the REALLY question to ask, is WHY? Along with, What language(s) are you targeting? '
(Is this some sort of HOMEWORK assignment???)
--------------------------------------------------------------------
hi
The point of the question is how certain conditions can be imposed
the question
Can the condition listed in the previous question be enforced?
-
Jan 6th, 2022, 09:09 AM
#19
Thread Starter
Hyperactive Member
Re: I want to ask the user to login only English text ??
Originally Posted by Peter Porter
If by login you mean username, then you have to take into account different keyboard layout languages, and convert their language's character's unicode to a usable format. They may not have the option to convert their keyboard to English, simply because they can't install an English pack, or just don't know where to start to be able to enter English text.
hi
The point of the question is how certain conditions can be imposed
the question
Can the condition listed in the previous question be enforced?
-
Jan 6th, 2022, 09:11 AM
#20
Thread Starter
Hyperactive Member
Re: I want to ask the user to login only English text ??
Originally Posted by Elroy
I'm interpreting it as "limited to ASCII only", but that's just my assumption. Maybe he/she just wants alpha/numeric, or maybe just alpha, or maybe just upper-case alpha.
Mysystem, if it were me, I'd do it by monitoring the KeyDown, KeyPress, KeyUp events, putting some code in there that forced my limitations. And I'd also make sure the textbox was labeled well, telling the user what I was expecting.
----------------------------
hi
The point of the question is how certain conditions can be imposed
the question
Can the condition listed in the previous question be enforced?
-
Jan 6th, 2022, 09:15 AM
#21
Re: I want to ask the user to login only English text ??
NO! See my explanationS.
Caveat: POSSIBLY, but it would take a whole lot more experience in 'other languages' than you appear to possess.
And you never answered my questions...like wqweto, I'm outa here as well...unsubscribed to this ridiculous thread.
Sam
Sam I am (as well as Confused at times).
-
Jan 6th, 2022, 09:22 AM
#22
Re: I want to ask the user to login only English text ??
Originally Posted by Mysystem
--------------------------------------------------------------------
hi
The point of the question is how certain conditions can be imposed
the question
Can the condition listed in the previous question be enforced?
Your previous thread https://www.vbforums.com/showthread....mber-in-a-Text gave examples of how a particular condition could be imposed, the general process would be the same for any conditions you need imposed.
However, you really need to understand what your actual conditions are. You are asking if a condition can be imposed without ever giving a clear explanation of what that condition actually is.
You haven't fully explained what you mean by "only English" and "letters and words", if you can't clearly explain your requirements how is anyone going to be able to give advice, the very first steo in programming is to understand what you want to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|