>Hello Cetin,
>
>Thanks for the info, but it still does not work, I still get the 'member not found' error. to give you a more clear background on the problem.
>
>I have put a Heiarchial Grid control (HFlexGrid1) on the form in addition to a ADO data control (AdoDc1). In the form's Init method I put the following code to set Grid's Datasource to the ADO recordset.
>
>THISFORM.HFlexGrid1.DataSource = THISFORM.AdoDc1, does not work
>
>then I tried
>THISFORM.HFlexGrid1.Object.DataSource = THISFORM.AdoDc1, does not work
>
>then I tried
>THISFORM.HFlexGrid1.DataSource = THISFORM.AdoDc1.Object, does not work
>
>hell, I even tried
>THISFORM.HFlexGrid1.Object.DataSource = THISFORM.AdoDc1.Object, does not work
>
>On a aside, this entire process was a way to use the SHAPE syntax.
>
>But I keep trying, HELP !
>
>Dilip Pillai
Dilip,
The error you're getting is "member not found". I suspect either HFlexgrid or ADODc1 is not initialized.
Would you try this first :
_screen.print( ;
iif( type("THISFORM.HFlexGrid1") = "O" ;
and !isnull(THISFORM.HFlexGrid1) , ;
"Flexgrid is here", "Flexgrid is missing" )+chr(13) )
_screen.print( ;
iif( type("THISFORM.ADODc11") = "O" ;
and !isnull(THISFORM.ADODc11) , ;
"ADODc is here", "ADODc is missing" )+chr(13) )
Interestingly I'm working with ADO, HFlexgrid and DataGrid controls just now :) and :
THISFORM.HFlexGrid1.DataSource = THISFORM.AdoDc1.Object
works. Mine ADO recordsource is an FP2.x free table. If you cannot do it and gimme some time I could even post my testpad form to you.
Cetin