FoxChart 1.17c - Error in procedure _objtoclientex

Topics: Bug Information
Jun 4, 2009 at 9:54 PM

I've been trying to create a Multiple Bars graph coded directly in the Init of the dataenvironment of the report form.

At runtime generates an error in procedure _objtoclientex, no object 'parent' in 'm.toControl = m.toControl.Parent'

I have tried without success to resolve this error.

Developer
Jun 5, 2009 at 12:15 AM

Hi Churrucks,

 

Can you provide more details about the error message ?

Jun 5, 2009 at 4:20 AM

This is the case: I have a report where I need to show a Multiple Bars charts,
In the init method of dataenvironment I create the object as follows:

Select xview

Public oChart as FoxCharts OF "FoxCharts.vcx"
m.oChart = CreateObject ( "FoxCharts)
With oChart
      .
      .
      .
Endwith
oChart.DrawChart ()

The report contains a 'Picture/OLE Bound Control' with
property 'Source Control: oChart.ChartCanvas'

Running the report generates an error like following:
Message: Object Parent is not found.
Procedure: _objtoclientex
LineContents: m.toControl = m.toControl.Parent

Developer
Jun 5, 2009 at 5:06 AM

Thanks for the detailed explanation.

I've applied a fix related to this issue, and uploaded version 1.17e.

Please test this new version and tell me how it goes !

BTW, I'm very interested on this - probably this could become a very nice sample !

Regards

Cesar

Jun 5, 2009 at 2:22 PM

Hi Cesar: 

The update works very well, thank you. 

I agree with your idea of creating an example for this case. 

In my case, for the moment, I dont give to my users a form as charts editor, I just 

implements the charts they need into a report.

Greetings

 

Developer
Jun 5, 2009 at 2:53 PM

Thanks again !