Revision history for TutSelectStatement


Revision [22206]

Last edited on 2018-02-10 13:35:43 by JeffMarshall [escape camel-case words]
Additions:
The Select Case block can be viewed as an optimized If-""ElseIf"" ladder, and works in much the same way. The standard Select Case can use any of the standard data types for <expression> and the specialized Select Case As Const format is optimized for integer values.
A Select Case can usually be translated from an If-Elseif ladder. To illustrate this, the previous program is shown below as an If-""ElseIf"" ladder.
If you compare the two programs, you can see that the logic is quite similar, however the Select Case is much more readable and understandable than the If-""ElseIf"" ladder.
Deletions:
The Select Case block can be viewed as an optimized If-ElseIf ladder, and works in much the same way. The standard Select Case can use any of the standard data types for <expression> and the specialized Select Case As Const format is optimized for integer values.
A Select Case can usually be translated from an If-Elseif ladder. To illustrate this, the previous program is shown below as an If-ElseIf ladder.
If you compare the two programs, you can see that the logic is quite similar, however the Select Case is much more readable and understandable than the If-ElseIf ladder.


Revision [22177]

Edited on 2018-02-07 00:34:36 by sancho3 [escape camel-case words]
Additions:
//Last Reviewed by ""Sancho3"" on February 06, 2018//


Revision [20705]

Edited on 2016-02-10 16:15:38 by DkLwikki [Update link format]
Additions:
//Written by [[WikiRick|rdc]]//
Case 48 To 57
Print "You pressed a number key."
Case 65 To 90
Print "You pressed an upper case letter key."
Case 97 To 122
Print "You pressed a lower case key."
End Select
Sleep 1
Print "You pressed a number key."
Print "You pressed an upper case letter key."
Print "You pressed a lower case key."
Deletions:
//Written by [[WikiRick rdc]]//
Case 48 To 57
Print "You pressed a number key."
Case 65 To 90
Print "You pressed an upper case letter key."
Case 97 To 122
Print "You pressed a lower case key."
End Select
Sleep 1
Print "You pressed a number key."
Print "You pressed an upper case letter key."
Print "You pressed a lower case key."


Revision [10411]

The oldest known version of this page was created on 2007-07-31 11:46:25 by JeffMarshall [Update link format]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode