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!

VB 6 components

Status
Not open for further replies.

FranckM

Programmer
May 8, 2002
76
0
0
CA
I'm trying to understand a system I currently working with. This following line calls a function from the component. There are 2 possibikities, but I don't know which one. Can anyone shed some light?

Thanks ;)

This is the line in asp:
***
objGrantee.PartyName = trim(Request.form("txtGrantee").item(n))
***
These are the 2 functions in the component:
***
Public Property Let PartyName(value As String)

If Not mflgEditing Then Err.Raise 383

If Len(value) > Len(mudtProps.PartyName) Then _
Err.Raise vbObjectError + 1001, "String value too long"

mudtProps.PartyName = UCase(Trim(value))
mflgDirty = True

End Property

Public Property Get PartyName() As String

PartyName = Trim(mudtProps.PartyName)

End Property

**

Again, thx for the help ;)
 
the code in the Property Let is executed when you assign a value to the property, like you do in the top line:
objGrantee.PartyName = trim(Request.form("txtGrantee").item(n))

The code in property Get is executed when you assing a variable to the property, example:
MyVar = objGrantee.PartyName

Is that what you are asking? Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top