Building a Class

B

Brian Shannon

I am trying to compile a class for the first time and having some problems
understanding what to do.

Below is my class to start:
Imports System
Namespace WorkerFunctionsClass

Public Class WorkerFunctions
Function CreateOrderNumber (ByVal x as String, ByVal y as String)
Return x & y & "00"
End Function
End Class
End Namespace

The function will accept 2 values and I need to string them together to
build an order number.

First- I built this class in the project is that right or do you want to
build and compile outside the project?
Second- How do you compile it. I am using the vbc compiler and syntax I
picked up from ASP.NET unleashed but get an error "file'WorkerFunction.vb'
could not be found. My command line is vc /t:library WorkerFunction.vb

The file is located in C:\Inetpub\wwwroot\Project\

Assistance would be appreciated. I am not sure how on track I am so please
guide.
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top