Microsoft KB Archive/223071

= FIX: MSHFlexgrid Clip Property Can't Get Data in Selected Cells =

Article ID: 223071

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q223071



SYMPTOMS
With the version of Hierarchical FlexGrid that ships with Visual Basic 6.0, the Clip property on the MSHFlexGrid control did not return the contents of the selected cells.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



Steps to Reproduce Behavior
 Create a new Standard Exe project. Form1 is created by default. Add the Hierarchical FlexGrid to the Visual Basic toolbox. Place a Hierarchical FlexGrid and a CommandButton on the form.  Add the following code to the form: Private Sub Command1_Click MsgBox "Clip = " & MSHFlexGrid1.Clip End Sub

Private Sub Form_Load With MSHFlexGrid1 .Rows = 4 .Cols = 4 .Row = 0 .Col = 0 .RowSel = 3 .ColSel = 3 .Clip = vbTab & 1 & vbTab & 2 & vbTab & 3 & vbCr & _ 1 & vbTab & 1 & vbTab & 2 & vbTab & 3 & vbCr & _ 2 & vbTab & 2 & vbTab & 4 & vbTab & 6 & vbCr & _ 3 & vbTab & 3 & vbTab & 6 & vbTab & 9 .Row = 1 .Col = 1 .RowSel = 1 .ColSel = 1 End With Command1.Caption = "Clip" End Sub  Run the project. Select some of the cells in the Hierarchical FlexGrid.</li> Click the Command button marked "Clip."

If you're using the original version of the Hierarchical FlexGrid that shipped with Visual Basic 6.0 (MSHFLXGD.OCX version 6.00.3005) you will not see the contents of the selected cells in the dialog box. The Clip property will return an empty string.</li></ol>

With the version of the Hierarchical FlexGrid that ships with Visual Studio 6.0 Service Pack 3, the Clip property will return the contents of the selected cells and you will see that data in the dialog box.

Keywords: kbbug kbfix kbctrl kbvs600sp3fix KB223071

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.