script error: String not closed at new line

Discussion in 'Paragon Drive Backup Product Line' started by geth44, Jun 20, 2012.

Thread Status:
Not open for further replies.
  1. geth44

    geth44 Registered Member

    Joined:
    Jun 20, 2012
    Posts:
    3
    Location:
    FRANCE
    Hi,

    I got the following error in a script:
    String not closed at new line

    As the Paragon script language help is really a big sh... :thumbd:
    ( sorry to say that but it's a pure truth ! )
    and that it's practically impossible to debug script, o_O
    I absolutly don't understand what does that mean !!! o_O

    Here are the part of the code and the (red) line where error occurs:

    Code:
    [COLOR="seagreen"]// Get last (current) base image name [/COLOR] 
    SET STRING BaseDir = "\\Server01\Backup_2t\Backups_Server\server00\full_backup_disk1"
    SET STRING ImageMask = "full_backup_disk1_????????_0100p.000"
    PUSHSTR (string(ImageMask))			
    PUSHSTR (string(BaseDir))			
    CALL SUB_DIR [COLOR="SeaGreen"]// get file(s) list[/COLOR]
    SET VALUE i = POPNUM		
    IF (value(i)==1) THEN
        SET STRING ImageName = POPSTR
        [COLOR="Red"]SET STRING ImagePathName = string(BaseDir) + "\" + string(ImageName)[/COLOR]
    ENDIF
    Doesn't anyone have any idea ?

    Geth
     
  2. geth44

    geth44 Registered Member

    Joined:
    Jun 20, 2012
    Posts:
    3
    Location:
    FRANCE
    After wasting an hour looking for a solution (thank to Paragon),
    I finally understand that the backslash is interpretted like an escape char,
    (no mention about that in the help !!! ... thank to Paragon)
    so the interprerter doesn't see the following quote and considered that the string isn't closed ... o_O

    So, trying another approach, I found the KEY_BACKSLASH keyword/constant (o_O so poor explanation about it) in help.
    No chance, I was unable to use it without error ! :'(

    Finally, the solution was to use CODETOCHAR(92) in place of quoted backslash, like this:
    Code:
    SET STRING ImagePathName = string(BaseDir) + CODETOCHAR(92) + string(ImageName)
    Hoping that could help someone in futur ;)
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.