From: IN%"Mark.Jacobson@uni.edu" "MARK JACOBSON" 14-JUN-2000 15:28:27.16 To: IN%"810-030-01@uni.edu" CC: Subj: Comments in Visual Basic, single quote... Hi VB students, The apostrophe or single quote character in Visual Basic means the rest of that line is a COMMENT, and is written to document or explain the code. The compiler will ignore the line. ------------------------------------------------------------------------------ ' Written by: Mark Jacobson ' Due date: Thursday, June 15th, by 5 p.m. ' This program has 5 different comments, count the ' to see. Private Sub cmdSayHello_Click() MsgBox "Hello - Sturgis Falls Days is close" MsgBox "12 squared is " & 12 * 12 ' * for multiplication End Sub ' <--- That is the end of this SUB and this is a comment... ------------------------------------------------------------------------------ Page 84 of the textbook explains the Comment Keywords. You can use REM or Rem, which is short for remark, but most all Visual Basic programmers use the single quote (also called apostrophe) character to allow comments. Use ' instead of Rem for comments. The line continuation character is explained on page 85. An underscore preceeded by a space means the next line will be a continuation of the statement written on this line. It was too long for one line. Mark