Hi Cathy,
Thank you for bringing this to our attention!
This is actually pretty simple, and also happens in VFP6. The following code is a simpler example. Uncomment the this.RecordSource = "" to make the crash not occur.
CLOSE DATABASES ALL
public junk
CLOSE DATA ALL
OPEN DATA HOME()+'samples\tastrade\data\tastrade'
SET DATA TO TasTrade
USE 'Customer Listing' ALIAS Customers
junk = createobject('mygrid')
DEFINE CLASS myGrid as grid
RecordSource = "Customers"
Visible = .T.
Width = 500
FUNCTION INIT
SELECT Customers
lcRS = this.RecordSource
* this.RecordSource = ""
=REQUERY("Customers")
this.RecordSource = lcRS
ENDPROC
ENDDEFINE
I passed this one up the line.
Thanks again!
Jim
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.