Article ID: 131560
Article Last Modified on 9/30/2003
CREATE CLASS grid1 OF myvcx AS Grid &&Set the ColumnCount property to 1
USE myvcx.vcx
LOCATE FOR baseclass = 'header'
COPY TO myvcx2 NEXT 1
APPEND FROM myvcx2
GO BOTTOM
REPLACE objname with 'myheader'\
* The replace statement below is the cause of the error
* A header object is created, and this is illegal in a VCX.
REPLACE properties WITH STRTRAN(properties,"header1","myheader")
REPLACE reserved1 WITH 'Class'
REPLACE parent WITH SPACE(0)
REPLACE UniqueID WITH LEFT(UniqueID,LEN(UniqueID)-1) + ;
IIF(RIGHT(UniqueID,1)='Z','Q','Z')
USE
ERASE myvcx2.DBF
ERASE myvcx2.FPT
MODIFY CLASS myheader OF myvcx
* choose the class MyHeader and click Open
Additional query words: crash hang
Keywords: kbbug KB131560