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!

Creating instance of classes

Status
Not open for further replies.

lashwarj

IS-IT--Management
Nov 1, 2000
1,067
US
How do I create an instance of a class. Where would i do this. I recived a recommindation where they instruct me to create an instance of the class and I have no idea what they are talking about...
 
If you have a class called employee then do this:

local oEmployee as employee && not required, but I believe this will let intellisense work in VF7

oEmployee = createobject("employee")
 
If you are in the project manager,
1. Drop a control on a blank form..Example textbox
2. Format the control as desired..Example change font
3. Make sure the control is selected
4. Go to File> Save as class
5. Save the selected control to the desired folder in your project (I always have an empty "LIB" folder in each project structure)
6. go to the "Classes" tab in your project and add the class
to the project.
 
Or simpler

In the command window type CREATE CLASS
A Window pops up and need three things, the name of the class and where you want to save to (or in what class library you want to save it if you specify one that already exists) and the type of class it will be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top