You're welcome, but there's no need to SHOUT all the time ;-)
SELECT CASE might give you "neater" code but I've found it usually produces larger code than IF-THEN constructs and in this particular case I don't think Select Case is of any use to you.
Another thing that might be worth a try is to do the extract the values from the array into temporary variables first, then run your comparisons. Something like:Code:TempA = DataIn[2] TempB = DataIn[3] TempC = DataIn[4] TempD = DataIn[5] TempC = DataIn[6] GOSUB A GOSUB B 'And so on A: If TempA = xx THEN If TempB = xx THEN 'and so on
I'm sure there are more you can do depending on exactly what it is you're trying to achieve.
/Henrik.




Bookmarks