Changes

The Basics of VB6

857 bytes added, 20:54, 21 September 2007
The following lines were added (+) and removed (-):
=== Select Case (Switch) ===CASE in Visual BASIC does not "fall through" like in C.  Select Case Button.Key    Case "ListCache"      mnuListCache_Click    Case "Refresh"      mnuRefresh_Click    Case "simmode"      cmdSimMode_Click  End Select  Select Case tcpClient.State    Case 0      tcpClient.RemoteHost = cboRemoteHost      SessionConnect    Case 7      lblStatus.Caption = "Connected"    Case 9      lblStatus.Caption = "Connection Error"  End SelectCase based on more than one condition  Select Case True    Case strMessage Like "*OK*" And lblStatus.Caption = "Connected"    blnReceivedAll = True  Case strMessage Like "*OK*" And lblStatus.Caption = "retrieving."    lblStatus.Caption = "retrieving.."    blnReceivedAll = True  Case Else    Set LoopTime = New TimerClass: tmrDisconnect.Enabled = True  End Select
Bureaucrat, administrator
16,221
edits