"Compiler Error Message: BC30311: Value of type 'Integer' cannot be
converted to 'ASP.multiclasses_aspx.VehicleKey'."
It is expecting a VehicleKey type of object. You can not send in an
Interger when it expects a VehicleKey type.
From what your code looks like you could do something like:
Line 108: DodgeCar.Ignition(new VehicleKey(789))
Or since you defined did: "Dim PlymouthKey As New VehicleKey(789)" you could
just pass in PlymouthKey
Line 108: DodgeCar.Ignition(PlymouthKey)
Make sure you turn "Option Strict On" This will help you figure these
errors out at design time.
Hope this helps
Chris
> I'm learning form an ASP.NET 1.0 book and I tried out some code that
> returns this error:
[quoted text clipped - 216 lines]
> Thanks,
> Jim
Jim in Arizona - 31 Jan 2005 22:22 GMT
> "Compiler Error Message: BC30311: Value of type 'Integer' cannot be
> converted to 'ASP.multiclasses_aspx.VehicleKey'."
[quoted text clipped - 14 lines]
> Hope this helps
> Chris
--------SNIP-----------
That was exactly what I needed to know. Actually, it was similar in the book
and somehow along the way I must of stopped paying attention to what I was
doing.
Thanks Chris.
Jim