Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Heiarchial Flex Grid Control
Message
From
26/10/1999 08:16:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/10/1999 07:41:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00281117
Message ID:
00281445
Views:
16
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform