#1
  1. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Dec 2005
    Posts
    260
    Rep Power
    12

    End of Statement Expected


    Hello

    I am hoping to send an email to users and to end that email with:

    Thank you.

    Regards


    I am using Visual Studio (vb.net).

    I have tried:

    Code:
     Dim Salutation1 as New Salutation1 = "Thank you"<br /><br />
                Dim Salutation2 As New Salutation2 = "Regards"<br /><br />
    but I get 'End of Statement Expected' errors.

    Thank you for any advice.

    Steve
  2. #2
  3. I do .NET for a living
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Sep 2003
    Location
    Florida
    Posts
    1,558
    Rep Power
    214
    Originally Posted by SteveHigh
    Hello

    I am hoping to send an email to users and to end that email with:

    Thank you.

    Regards


    I am using Visual Studio (vb.net).

    I have tried:

    Code:
     Dim Salutation1 as New Salutation1 = "Thank you"<br /><br />
                Dim Salutation2 As New Salutation2 = "Regards"<br /><br />
    but I get 'End of Statement Expected' errors.

    Thank you for any advice.

    Steve
    You need to enclose the entire string in the quotes:
    Code:
    'Instead of:
     Dim Salutation1 as New Salutation1 = "Thank you"<br /><br />
                Dim Salutation2 As New Salutation2 = "Regards"<br /><br />
    
    'Make them:
     Dim Salutation1 as New Salutation1 = "Thank you<br /><br />"
                Dim Salutation2 As New Salutation2 = "Regards<br /><br />"
    Roger (.NET MCP)

Similar Threads

  1. “Expected statement” in an If Then Statement
    By xrum in forum ASP Development
    Replies: 1
    Last Post: February 16th, 2012, 04:25 PM
  2. End of statement expected
    By dibblejon in forum .NET Development
    Replies: 1
    Last Post: April 22nd, 2010, 04:53 AM
  3. Expected end of statement
    By jpockets5 in forum ASP Development
    Replies: 7
    Last Post: December 19th, 2006, 01:55 PM
  4. Expected End of Statement
    By dhahn in forum ASP Development
    Replies: 15
    Last Post: June 24th, 2005, 06:26 PM
  5. expected statement
    By jmoore032000 in forum ASP Development
    Replies: 4
    Last Post: February 25th, 2005, 05:40 PM

IMN logo majestic logo threadwatch logo seochat tools logo