Results 1 to 2 of 2

Thread: String problem

  1. #1

    Thread Starter
    Addicted Member jeroenh's Avatar
    Join Date
    Aug 2000
    Location
    Rotterdam, Holland
    Posts
    201

    String problem

    I must be doing something wrong.

    I want to have a variable that holds the string 'C:\ESS Export\',
    but when I use the line - Location.value = 'C:\Export location'; - or
    Location.value = "C:\Export location"; - I get the following error
    - Unterminated string constant.

    Even when the page only holds - var vVariable = "C:\Export location" - I get the error message.

    What seems to be the problem??
    Catch you later,

    Jeroen Hoekemeijer
    Code:
    If 1 = 2 Then MajorError

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Try : "C:\\Export location";

    You need to escape the escape character ("\").

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

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



Click Here to Expand Forum to Full Width