An "if then" always returns unit; this code

if not (filter_match.Success) then
upto

does nothing. The entire function body is an expression, you need if-then-else (and everything after this goes in the 'else') if you want the function to return upto in this case. As it stands, it evaluates this branch, throws the value away, and continues evaluating the 'statements' that follow.

By on 2/20/2009 3:45 PM ()

d'oh. fair enough, thanks.

By on 2/23/2009 7:12 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper