Cannot use basic method of VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I wrote a common.vb file as a code bebind logic.
I cannot use some common method e.g. len, month, year, formatdatetime.
Anyone can help me ? Thx u very much.

The structure of my vb file :

Imports System
Imports System.Data

Namespace comfunction

Public Class common : inherits System.Web.UI.Page

// function insert here

End Class

End Namespace
 
How do you compile (VS.NET or command line compiler) ? It seems you are
missing the Microsoft.VisualBasic namespace :
- if using VS.NET it should be added automatically for you in the project
properties
- if using the command line compiler, you may have to add this explicitely

AFAIK you don't need to add a reference, I believe the command line compiler
does this for you (perhaps does it need the sdkpath switch).

Patrice
 
Back
Top