|
-
Jun 30th, 2003, 07:47 AM
#1
Thread Starter
Hyperactive Member
why in VB.Net I’m getting this error
Could anyone let me know why in VB.Net I’m getting this error on the third line of code below?
ERROR:
Option Strict On disallows implicit conversions from 'System.Object' to 'VBNET.HowTo.Address'.
CODE:
ReadOnly Property CurrentAddress() As Address
Get
Return AddressBook.Items(CurrentAddressIndex - 1)
End Get
End Property
I declare like this:
Public AddressBook As AddressBook
Private _currentAddressIndex As Integer
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|