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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a Constructor to Create a Function

Status
Not open for further replies.

UNIMENT

Programmer
Feb 15, 2002
302
US
Would anyone happen to know whether you can use a Constructor function to create an Object that you can access just like a normal function?
Code:
function myConstructor() {
 // code
}
myObject=new myConstructor;
myObject();
bluebrain.gif
blueuniment.gif
 
That's ... not what I'm looking for. I'm not looking for basic Object-orientation (I know all that already). Rather, I'm looking for a way to use a constructor function to create a function Object.

What I'm looking for is sort of like the
Code:
Function
constructor. How would you make a
Code:
Function
constructor?
bluebrain.gif
blueuniment.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top