Results 1 to 3 of 3

Thread: CodeBehind

  1. #1
    Join Date
    Dec 1969

    Default CodeBehind

    In a file, CodeBehindMyMatch.vb, I have some statements like:<BR> Imports System<BR> Imports System.Web.UI<BR> Imports System.Web.UI.WebControls<BR> Imports System.Web.UI.WebControls.HtmlControls<BR> Public Class CodeBehindMyMatch<BR> Inherits Page<BR> Sub ... (VB code to collect info from a cookie)<BR> End Sub<BR> End Class<BR>In that code, I&#039;m using the standard VB Function MID(), but I get an error message that it hasn&#039;t been declared.

  2. #2
    Join Date
    Dec 1969

    Default RE: CodeBehind

    Have you added Imports Microsoft.VisualBasic?

  3. #3
    Join Date
    Dec 1969

    Default RE: Yeah, but.....

    ..why move to .NET and use all the old VB6 stuff? The String Class has the SubString() Function that will do the same thing without having to bother with importing/using another namespace/dll. Sure, it is fine to use Microsoft.VisualBasic and the Mid() Function, but... I dunno... I just prefer to move forward. <BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts