How to check a given input?
How to check a given input?
- Subject: How to check a given input?
- From: Martin Kautz <email@hidden>
- Date: Mon, 20 Aug 2001 16:09:06 +0200
Hello all,
please treat me with care if this is off topic. I'm a rookie. :-)
Could someone please help me a little with checking inputs?
I'm using a text field to get data from it.
NSString *romanInput=[fieldInput stringValue];
Actually I want to use it as input field for roman numbers. Ho do I
check against wrong inputs (integers or a string containing other chars
than M, X, C, V, D, L, M, I?
Well, at second I want to use another textfield as input for integers.
int arabicInput=[fieldInput intValue];
How do I check input against chars, strings and stuff?
TIA,
Martin