One or more statements following Case that run if testexpression matches any clause in expressionlist. The expressions in expressionlist can be of any data type, provided they are implicitly convertible to the type of testexpression and the appropriate comparisonoperator is valid for the two types it is being used with. This form is evaluated as testexpression = expression. The form specifying only expression is treated as a special case of the Is form where comparisonoperator is the equal sign ( =). If the Is keyword is not supplied, it is automatically inserted before comparisonoperator. Use the Is keyword with a comparison operator ( =,, , or >=) to specify a restriction on the match values for testexpression. The value of expression1 must be less than or equal to the value of expression2. Each clause can take one of the following forms: - expression1 To expression2 - comparisonoperator expression - expression Use the To keyword to specify the boundaries of a range of match values for testexpression. Multiple expression clauses are separated by commas. List of expression clauses representing match values for testexpression. Must evaluate to one of the elementary data types ( Boolean, Byte, Char, Date, Double, Decimal, Integer, Long, Object, SByte, Short, Single, String, UInteger, ULong, and UShort). Runs one of several groups of statements, depending on the value of an expression.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |