learningnet
asked on
class instance
hello experts
i wanted to set the instance of this customerdetailclass based on learnit value
i tried the following and am getting errors
If learnIt Then
Dim ContactDetails As New CustomerDetailsClass(Conta ctTitle, txtContactFirstName.Text,, ,,,,)
else
Dim ContactDetails As New CustomerDetailsClass(Conta ctTitle, txtContactFirstName.Text,, ,,,,)
end if
Can I not use like this?
Dim ContactDetails As New CustomerDetailsClass
if learnt then
ContactDetails = ContactDetails(ContactTitl e, txtContactFirstName.Text,, ,,)
else
ContactDetails = ContactDetails(ContactTitl e, txtContactFirstName.Text,, ,,)
end if
please advise
thanks
i wanted to set the instance of this customerdetailclass based on learnit value
i tried the following and am getting errors
If learnIt Then
Dim ContactDetails As New CustomerDetailsClass(Conta
else
Dim ContactDetails As New CustomerDetailsClass(Conta
end if
Can I not use like this?
Dim ContactDetails As New CustomerDetailsClass
if learnt then
ContactDetails = ContactDetails(ContactTitl
else
ContactDetails = ContactDetails(ContactTitl
end if
please advise
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.