-
A syntax question
I am reading some sample code, can somebody tell me what the two : mean in the following code?
Private Sub cboAddressList_Click()
NewAddress = Ports(cboAddressList.ListIndex)
If NewAddress <> Address Then
Address = NewAddress:
MsgBox "New Port Selected --- " + cboAddressList.Text + Chr(13) + Chr(10):
End If
End Sub
-
Nothing, really. It just tells vb that it's the end of the line. That way, you cold say:
Code:
If (dog = mammal) And (cat = mammal) Then
dog = cat
Debug.Print "Dogs are cats!"
End If
'and
If (dog = mammal) And (cat = mammal) Then: dog = cat: Debug.Print "Dogs are cats!": End If
and both would be exactly the same.
-
-
no problem.
I think the author of the sample code is a C/C++ or Delphi coder. Delphi and C++ code ends with ;
Dunno.