Questions tagged [validating]
107 questions
0
votes
2 answers
Validating and storing comma separated values
I have a split string,
string s = Console.ReadLine();
string[] values = s.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
s should receive input like this:
string literal, numeric value, numeric value, numeric value OR string…

Brian Kubricky
- 63
- 1
- 1
- 9
0
votes
1 answer
Validate dynamically created richtextboxes
I am in need of validating x amount of RichTextBoxes I created dynamically at the press of a button. I need to make sure there isn't a single RTB empty before copying the contents to the clipboard and calling the next form.
I tried adding a boolean…

hectormtnezg
- 132
- 5
- 18
0
votes
1 answer
Check if the value currently in combobox is contained in items of that combo
I have Control - ComboBox which is list of languages. I've added languages in that combo by right click to that combo -> properties -> selecting properties there and then -> Items (...) Containing. I've added there few languages, one by row.
The…

Tommz
- 3,393
- 7
- 32
- 44
0
votes
2 answers
Validate Form Element in one function in jquery
var client_name = $("#client_name");
var client_surname = $("#client_surname");
var client_phone = $("#client_phone");
var form =…

user2854865
- 65
- 1
- 3
0
votes
2 answers
Validating input with while loop and scanner
What's the best way about getting a valid integer from a user that is in a specified range (0,20) and is an int. If they enter an invalid integer print out error.
I am thinking something like:
int choice = -1;
while(!scanner.hasNextInt() ||…

user1874239
- 305
- 2
- 6
- 10
0
votes
3 answers
Validating Integer in C
I am creating a program in C where i have to accept an integer to continue.I read some questions to use the following code but my program just goes into infinite loop soon after entering any character.Please help me
int…

Dhruv Jain
- 21
- 4
0
votes
3 answers
Validating user input to certain criteria and than entering the input into an array, Most basic solution possible is required
Hi all. I am trying to find a solution to check user input according to certain specifications and if they are valid enter them into an array. There is no restriction on the array so therefore length etc is unknown. All the details of what the…
user1618269
0
votes
1 answer
Php !is_valid_type($image) is only working on one instance of an array
Hey guys what I'm trying to do is build an upload page for various games across different game consoles. I will admit I am new to php and I'm just trying to figure things out.I have ran into a strange problem via uploading images. I do not…

user1452407
- 100
- 1
- 11
0
votes
1 answer
Validating event not fired for child controls of picturebox
Yesterday I have implemented some validating events for controls in a groupbox located on a WinForm. I have set the AutoValidate property of the form to Disabled, I have set the CausesValidation property of the controls to true and implemented the…

Doki
- 11
- 2
-1
votes
1 answer
Program crashes when validating user input, what's happening?
I'm converting an string made of numbers to an integer. The user enters 10 strings (one string at a time) and the string is stored as a number. When the user enters a non-number into the string the program catches the error and asks the user to…

user2466886
- 205
- 1
- 3
- 14
-1
votes
4 answers
Android app shutting if form blank - Need a validation form
I have a app for convert km/h for mph.
If the form is blank and press button convert, the app simply closes.
I understand that i need a function thats validade if the form is blank and show a message informating users that form cannot be blank but i…

RodrigoKrz
- 1
- 2
-1
votes
1 answer
Input sanitizing, some questions (PHP)
I got this code from a youtube video, code is really useful but I want to improve it security:
function escape($string) {
$str = trim($string);
return htmlentities($strfinal, ENT_QUOTES, 'UTF-8');
}
together with the…

Hash
- 9
- 3
-1
votes
2 answers
Reading Strings
I'm having trouble with an assignment. What's happening is that a file is being read that reads numbers and validates if they're correct values. One of these values contains a letter and I'm trying to get my program to detect that and save the total…

a12b23c34
- 65
- 1
- 6
-1
votes
4 answers
Check for continuous order in array in javascript
var userInput = prompt('enter number here');
var number = new Array(userInput.toString().split(''));
if (number ????){ //checks if the number is in a continuous stream
alert(correct);
}
else{
alert(invalid);
}
In Javascript, what can I do at "????"…

BigBob
- 1,015
- 1
- 8
- 9
-2
votes
3 answers
Comparing two text box which contains email_Id
Can someone help me out with validation of two text-box with same email Id.
I was able to pop an alert if both the text-box contain the same email Id via JavaScript(my requirement was both text-box cant have same email) but now I m facing a problem…

Dhaval
- 17
- 2
- 7