Questions tagged [user-input]

User Input is data that the user inputs into the program. It generally takes the form of a String, but may also be an integer, floating-point number, etc.

5580 questions
6
votes
4 answers

Test to ensure the user input is a double and is greater than zero?

In C# I am trying to have the user input a number. I then want to check that They have entered a string that can be converted to a double and They have entered a value greater than zero The method I have initially created was string…
firepower4
  • 79
  • 7
6
votes
3 answers

LibGdx, How to handle touch event?

I am LibGdx Newbie, and trying to make my iceCream image touchable. I like to know how to set the input-process(by touch on screen). Do I need to make another class? When I try to implements the input-process to my Prac1 class, JAVA doesn't allow…
IAMBEAST
  • 133
  • 1
  • 2
  • 12
6
votes
0 answers

Jenkins parametrized build, adding new form inputs dynamically

I have a Jenkins job with parametrized build. I was wondering if there is any way to make those parameters dynamic in a way that user can add/delete parameters when she hits "Build with parameters"? Something like jQuery dynamic input (I found an…
Odil
  • 81
  • 5
6
votes
5 answers

HTML/ASP.NET:

I just wanna ask if there's a possibility to change: into this: where I can set any values behind .cs/C# - making it dynamically.…
abramlimpin
  • 5,027
  • 11
  • 58
  • 97
6
votes
4 answers

Handling RuntimeExceptions in certain circumstances valid?

As I understand it from several tutorials, RuntimeExceptions are actually not supposed to be caught, because they shall reveal inappropiate usage of methods, especially APIs, correct? Furthermore, one might assume that the program is not able to…
Unknown Id
  • 460
  • 3
  • 12
6
votes
1 answer

User input in batch file with default value

I'm trying to prompt user for input in the batch file with default value (in case user doesn't enter input). I am trying as given below: default values required: 1 to head. set rev1=1 set rev2=HEAD set /p rev1="start rev: default is %rev1% " set /p…
Anu
  • 176
  • 1
  • 3
  • 14
6
votes
2 answers

How to allow multiple inputs from user using R?

For example, if I need that the user specifies the number of rows and columns of a matrix: PROMPT: Number of rows?: USER INPUT: [a number] I need that R 'waits' for the input. Then save [a number] into a variable v1. Next, PROMPT: Number of…
Juan
  • 61
  • 1
  • 2
6
votes
3 answers

How do I strip quotes from an input box using PHP?

I have this: I want to strip quotes from user input so that if someone enters something like: "This is my title" it wont mess up my code. I tried this and…
Babak
  • 279
  • 1
  • 7
  • 16
6
votes
4 answers

New classes created by users?

Consider this situation: I've got an aquarium simulator where I have 5 different types of fishes. Different types means different attributes (speed, colour, hunger, etc). What if I want the user of my simulator to be able to create a new type of…
user103798
6
votes
6 answers

Handle the KeyDown Event when ALT+KEY is Pressed

How do you handle a KeyDown event when the ALT key is pressed simultaneously with another key in .NET?
Jedi Master Spooky
  • 5,629
  • 13
  • 57
  • 86
6
votes
7 answers

User Names and White-Spaces

In past many years I have registered on various applications and platforms hosted online or offline. Why white-spaces are not allowed in User Names as spaces are very natural to names and most of the computing systems can handle them…
VarunGupta
  • 6,127
  • 5
  • 27
  • 31
6
votes
4 answers

How do I loop a request for user input until the user enters the correct info?

I am a beginner who is trying to learn Ruby. I have learned some of the easier stuff so far, but I seem to be stuck in trying to combine a couple of things I've learned. What I am trying to do is to ask the user a question and tell them to enter…
Bushido Code
  • 63
  • 1
  • 1
  • 4
6
votes
3 answers

shell function to prompt for and return input

I'm trying to write a helper function to use in a bash script to take a variable prompt string and return the value the user inputs. What I have sits and waits for a user to input the value without displaying the prompt first, which is puzzling. …
Almo
  • 63
  • 1
  • 1
  • 4
6
votes
4 answers

Java ArrayList, taking user input of multiple types(int, String etc.) in one line

I'm working on getting a little better at Java, and a problem I've run into is taking user input, all in one line like this: System.out.println("Please input numbers that you would like to work with"); //Read in user input into ArrayList,…
trueCamelType
  • 2,198
  • 5
  • 39
  • 76
6
votes
2 answers

Why my textbox TextChanged event gets fired after I enter "only" one character in my text box?

private void NameVal_TextChanged(object sender, EventArgs e) { String text = NameVal.Text; } As soon as I enter the first letter of my Name this program gets executed . How do I make the program wait until I finish entering the…
user1298925
  • 2,304
  • 7
  • 29
  • 43