Microsoft KB Archive/192826

= FIX: DeleteColumn Causes Invalid Page Fault Error in Grid =

Article ID: 192826

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q192826



SYMPTOMS
Using the DeleteColumn method to delete the active column in a Grid causes and Invalid Page Fault error in Windows 95 and Windows 98 or an Access Violation error in Windows NT 4.0.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual FoxPro 6.0.



MORE INFORMATION
WARNING: Close all open applications and save your data before following this procedure. Note that following these steps may produce lost allocation units, lost clusters, or cross-linked files.

Steps to Reproduce Behavior
 From the File menu pad, choose the New menu bar, and then select Menu. In the New Menu dialog box, click the Shortcut button. In the Menu Designer, type in "Delete" for the prompt and to create a procedure.  In the procedure, type in the following commands: lo = _SCREEN.ActiveForm lo.grdcustomer.DeleteColumn(lo.grdcustomer.activecolumn)  From the Menu pad, choose Generate, and then save the file as GrdDel.mpr. Create a form using the Form Designer. In the data environment of the form, add in the Customer.dbf table from the \Samples\Data directory.</li> Drag the table in the data environment onto the form to create a grid.</li> Make sure the Name property of the grid is grdcustomer.</li>  In the Click event of the text box in the second column of the grid, place the following code: DO GrdDel.mpr </li> Save and run the form. When the form shows up, right-click on the second column and select the Delete option from the shortcut menu. Visual FoxPro produces on the errors listed in the Summary section above.</li></ol>

Additional query words: kbDSupport kbDse kbVFp500abug kbVFp600fix kbCtrl kbContainer

Keywords: kbbug kbfix KB192826

-

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

© Microsoft Corporation. All rights reserved.