Option Strict On requires all function and property declarations to have an 'As' clause.

  • Thread starter Thread starter Reny
  • Start date Start date
Hi,

You need to specify the type of function. Here is a really simple
example.


Public Function MyStringFunction(byval s as string) as string
return S
end function

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

option strict 5
Option strict 4
How to write a Declare for a sub? 2
Why doesn't ToString require () 38
Option Strict Off 8
Option Strict Off/On 12
ASP.Net, where do I put Option Strict? 1
Strict On/Off 6

Back
Top