PRB: Code Copied From MSDN VStudio Help Is Improperly FormattedID: Q190266
|
When you copy code examples from the MSDN Library Visual Studio 6.0 Help Viewer, it omits some carriage return/line feed characters and the code is not formatted correctly.
Formatting tags are included at the start and end of each example, and the code is not be formatted properly if you do not copy these tags.
When copying code, be sure to completely include the first and last lines of the code example.
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The documentation for Visual Studio 6.0 is accessed from a common viewer called MSDN Library Visual Studio 6.0 Help Viewer. All Visual Studio 6.0 products that have code examples are affected by this problem. These include, but may not be limited to, Visual FoxPro 6.0, Visual Basic 6.0, Visual C++ 6.0 and Visual J++ 6.0.
help DATE()
SET CENTURY OFF? DATE( ) && Displays today's date without the century.
SET CENTURY ON
SET CENTURY OFF
? DATE( ) && Displays today's date without the century.
SET CENTURY ON
CLEAR
SET CENTURY OFF
? DATE( ) && Displays today's date without the century.
SET CENTURY ON
? DATE( ) && Displays today's date with the century.
? DATE(1998, 02, 16) && Displays a year 2000-compliant Date value.
If TypeOf Screen.ActiveControl Is TextBox Then
Label1.Caption = Screen.ActiveControl.Text Else
Label1.Caption = "Button: " + Screen.ActiveControl.Caption End If
If TypeOf Screen.ActiveControl Is TextBox Then
Label1.Caption = Screen.ActiveControl.Text
Else
Label1.Caption = "Button: " + Screen.ActiveControl.Caption
End If
Private Sub Form_Click ()
If TypeOf Screen.ActiveControl Is TextBox Then
Label1.Caption = Screen.ActiveControl.Text
Else
Label1.Caption = "Button: " + Screen.ActiveControl.Caption
End If
End Sub
Additional query words:
Keywords : kbVBp600 kbVC600 kbVFp600 kbVJ600 kbVS600
Version : WINDOWS:6.0; winnt:6.0
Platform : WINDOWS winnt
Issue type : kbprb
Last Reviewed: April 14, 1999