TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Most programming books use listings for code examples and use a monospaced font
for the code.
For example:
Listing 3.1 is an example of how declare your variables in the update label
procedure:
Listing 3.1 Variables being declared (there would be a line below this heading).
Public Sub UpdateLabel()
' Declare the variables
Dim Info As String
Dim LFCR
LFCR = Chr(13) + Chr(10)
Rem Sound
If chkSound.Value = True Then
Info = "Sound: ON"
Else
Info = "Sound: OFF"
Rem Mouse
If chkMouse.Value = 1 Then
Info = Info + LFCR + "MOUSE:ON"
Else
Info = Info + LFCR + "MOUSE:OFF"
End If
End Sub
(A line would be here to end the listing.)
Of course I doubt you guys would use VB code at Sun ;-), but this would be my
choice.
HTH,
-jp
Teknekron Infoswitch is now e-talk Corporation. Visit our website at www.e-talkcorp.com.