|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
advanced validation by codeperforming validation controls on these text boxes however there are some conditions Names of textboxes 1. x 2. y 3. z The conditions are 1. x , y , z should be numeric. 2. x and y can be blank ( x = "" , y = "") at a time 3. z can never be blank, it should always have a numeric value. 4. if x has a value y cannot be blank and x should be non negative 5. if y has a value x cannot be blank and y should not be non negative. 6. if x and y have values y > x 7. z should be non negative A message box should pop up each time the user clicks a button with the appropriate error ( eg : x cannot be negative , or y cannot be greater than x , etc... ) Since I am actually dealing with cells in a data grid I cannot use any sort of validation controls. I need to perform the validation using code. I am using visual studio 2005 , Visual Basic Any sort of help will be gratefully appreciated.
Show quote
Hide quote
"Sankalp" <sankalppa***@gmail.com> wrote in message Your logic is a little fuzzy/messed up. Step #6: if x and y have values, y news:1164854581.728896.3850@14g2000cws.googlegroups.com... > Hi I am writing a large program where I am using three text boxes. I am > performing validation controls on these text boxes however there are > some conditions > > Names of textboxes > 1. x > 2. y > 3. z > > The conditions are > > 1. x , y , z should be numeric. > 2. x and y can be blank ( x = "" , y = "") at a time > 3. z can never be blank, it should always have a numeric value. > 4. if x has a value y cannot be blank and x should be non negative > 5. if y has a value x cannot be blank and y should not be non negative. > 6. if x and y have values y > x > 7. z should be non negative > > > A message box should pop up each time the user clicks a button with the > appropriate error ( eg : x cannot be negative , or y cannot be greater > than x , etc... ) > > Since I am actually dealing with cells in a data grid I cannot use any > sort of validation controls. I need to perform the validation using > code. I am using visual studio 2005 , Visual Basic > Any sort of help will be gratefully appreciated. > > x. In the paragraph immediately following, it says (eg : x cannot be negative, or y CANNOT be GREATER than x)...hmm, little weird here ;) Mythran
VB vs. C# language challenge question
Full Screen connect vb app to sql 2005 express how to make cookies into an array? edit text in file using streamreader and string.replace Can't Figure Out why this array is out of bounds now! Looking for a simple explanation of how to walk through a dataset in .net 2.0 Delete Selected Lines from Text File loading treeview dynamically is very slow Add a META line to an existing HTML doc programmatically |
|||||||||||||||||||||||