Carriage Return in ASP

Results 1 to 2 of 2

Thread: Carriage Return in ASP

  1. #1
    Join Date
    Dec 1969
    Posts
    572

    Default Carriage Return in ASP

    How can i use a carriage return in ASP ? I need break a line with CR....<BR>Thks...

  2. #2
    Tony Guest

    Default RE: Carriage Return in ASP

    Hi Alex,<BR><BR>Through ASP you can use Chr(10) for a hard return or a Chr(34) for a line feed.<BR><BR>If you are doing this to properly format a SQL statement then it would look like:<BR><BR>SELECT_String = "SELECT movie.`IDNUM`, movie.`MOVIE`, movie.`GROSS` "<BR><BR>FROM_String = "FROM `Movie` movie "<BR><BR>WHERE_String = "WHERE (movie.`MOVIE` = &#039Back to the Future&#039 OR movie.`MOVIE` = &#039Beverly Hills Cop&#039 OR movie.`MOVIE` = &#039Crocodile Dundee&#039)"<BR><BR>NewSQLQueryString = SELECT_String & CHR(10)& CHR(13) & FROM_String & CHR(10)& CHR(13)& WHERE_String<BR><BR>I hope that this helps.<BR><BR>Tony<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
  •