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

Using Property Set Statement correctly

Status
Not open for further replies.

MacDaddyNickP

Programmer
Jun 7, 2005
22
0
0
US
Does anyone have a good example of using a Property Set Statement correctly to a user defined class.
 
Usually it's just
Code:
obj.PropertyName = SomeValue
if the property is a basic data type or
Code:
Set obj.Property = SomeValue
if the property is itself an object.

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
Inside the class setting

Public Property Set PictureForm(theForm As Access.Form)
On Error GoTo HandleError
Set mForm = theForm
mForm.OnCurrent = "[Event Procedure]"
Exit Property
HandleError:
MsgBox Err.Number & " " & Err.Description
End Property
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top