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!

Object referencing

Status
Not open for further replies.

Negator

Programmer
Oct 4, 2003
33
RU
Hello all PowerBuilder wizards!

Here is my problem: I have a user object u_Axes, which contains a function:
Name: initialize
Params: window DrawForm

Also I have a window called MainForm. I put a button on the window and wrote it's Clicked script:

u_Axes MyAxes
MyAxes.Initialize(MainForm)

The result of clicking is an error message:
Null object reference at line...

How to solve this?
Thank you!
 
Hi,

If the user object is not autoinstantiate then you have to create the object.

In your case

MyAxes = Create u_Axes

Hope that will solve your problem.

Abhijit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top