Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ascending Values (validation)

0 views
Skip to first unread message

Jack Higgs

unread,
Mar 20, 2005, 11:13:56 AM3/20/05
to
Users enter 4 numbers into 4 different text boxes to assign level thresholds
for pupils taking maths tests. The numbers should be in ascending order but
coming up with validation code is proving a problem (im new to this game).
How can I make sure that users enter correct levels? ie 4, 12, 15, 18 and
not 5, 2, 10, 15?
The highest number should not be less than 20 but I've done that one
already.

Cheers,

Jack


Veign

unread,
Mar 21, 2005, 12:11:35 PM3/21/05
to
Do you just want to validate that values were not entered properly or do you
want to re-order the list for them..

Steps:
Split the values by comma
Loop through the array generate from the split command
Make sure each subsequent value is greater then the previous - any failure
will be an invalid entry

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


"Jack Higgs" <wh004...@nospam.co.uk> wrote in message
news:8jh%d.97851$y25....@fe3.news.blueyonder.co.uk...

0 new messages