Rex,
Sorry for the misposting before. When you use the MustOverride attribute, you don't use the End Function. Here is the correct code:
Public MustInherit Class Base1
Public MustOverride Function Rex() As Boolean
End Class
>Cathi,
>
>Here it is:
>
>
>Public MustInherit Class Base1
>
> Public MustOverride Function Rex() As Boolean
> End Function
>
>End Class
>
>
>Thanks
>
>Rex
>>Can you post your code?
>>
>>>Cathi,
>>>
>>>I get the same thing.
>>>
>>>Any more ideas?
>>>
>>>TIA
>>>
>>>Rex
>>>
>>>>See if you are using the following syntax:
>>>>
>>>>
>>>>Public MustOverride Function MyFunction() As Integer
>>>> ...
>>>>End Function
>>>>
>>>>
>>>>>All,
>>>>>
>>>>>I cannot write a function with MustOverride. I get a blue squiggly on the End Function saying that "'End Function' must be preceded by a matching 'Function'".
>>>>>
>>>>>How can I do this?
>>>>>
>>>>>TIA
>>>>>
>>>>>Rex
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi