re: Boxes for Code, Screens?

Subject: re: Boxes for Code, Screens?
From: "John Prince" <JPrince -at- e-talkcorp -dot- com>
To: "techwr-l -at- lists -dot- raycomm -dot- com" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Tue, 16 May 2000 12:43 -0500

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

Listing 3.1 Variables being declared (there would be a line below this heading).
Public Sub UpdateLabel()
' Declare the variables
Dim Info As String
LFCR = Chr(13) + Chr(10)

Rem Sound
If chkSound.Value = True Then
Info = "Sound: ON"
Info = "Sound: OFF"

Rem Mouse
If chkMouse.Value = 1 Then
Info = Info + LFCR + "MOUSE:ON"
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



Teknekron Infoswitch is now e-talk Corporation. Visit our website at

Previous by Author: xml site
Next by Author: <No subject>
Previous by Thread: RE: Boxes for Code, Screens?
Next by Thread: Master / Slave

What this post helpful? Share it with friends and colleagues:

Sponsored Ads