06 October 2008 ~ Comments Off

Functions in VB

Something that i picked up on was that functions in VB and functions in PHP are a lot alike! This is great news, VB does not have the huge learning curve when stepping in from PHP.

Below i have created a simple function inside if a class:


Public Class Core
Public Function HelloWorld(AVar)
Return "Hello " & AVar
End Function
End Class

Remember, in VB that if you have a function it will need to return a value but a Sub cant return one.

Tags: ,

Comments are closed.