Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid procedure reference - when call to another class's methods

Status
Not open for further replies.

rjpitman

Programmer
Jul 12, 2004
2
US
What is the proper way to reference a method on another class?

My Report structure is:

NewReportApp
Content - SequentialSection
Content - LaborRptSec
DataStream - LaborSource
After - AlternateLineFrame2
Content - RecordCountControl

I want to set the value (Integer) on "RecordCountControl" from the Finish() method on "LaborSource".

I have tried the following from the Finish() method of "LaborSource":

NewReportApp::AlternateLineFrame2::RecordCountControl::SetDataValue(RecordCount)

RecordCount is a valid integer variable on the "LaborSource" class and I've used an msgbox() to confirm has the proper value.

The error I get is:

NewReportApp::LaborSource%Finish(9): Invalid procedure reference. - (SetDataValue)
1 Semantic Error(s) found

I have tried variations on the path to "RecordCountControl" class with no results. Do I need to instantiate an instance of this class to be able to make the call?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top