Jump to content

unterminated string


Recommended Posts

hey im having a problem with run my script..

it keeps coming up with "Unterminated String"

and keeps telling me its line 6

so i checked line 6 and all that it contains is "#Include <Misc.au3>"

so i moved it down a line just to see if it would follow it to line 7, i tried to run it again and aparently line 6 has unterminated string, even though it is blank.

obviously i dont understand what unterminated string is cause i cant see why even a blank space would bring up errors.

is there anyone that can tell me what the error "Unterminated string" normally is caused by?

thanks in advance

Link to comment
Share on other sites

  • Developers

hey im having a problem with run my script..

it keeps coming up with "Unterminated String"

and keeps telling me its line 6

so i checked line 6 and all that it contains is "#Include <Misc.au3>"

so i moved it down a line just to see if it would follow it to line 7, i tried to run it again and aparently line 6 has unterminated string, even though it is blank.

obviously i dont understand what unterminated string is cause i cant see why even a blank space would bring up errors.

is there anyone that can tell me what the error "Unterminated string" normally is caused by?

thanks in advance

You have forgotten to terminate a literal string ... missing a double or single quoute somewhere.

Show the code snippet for more accurate help

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

dont worry i found the reason.

on line 10 there was this command

#include "C:\Users\me\Desktop\logo.ico"

i deleted this and error was gone.

does anyone know the reason why this was a problem?

and why did it keep saying the error was line 6?

Edited by joboy2k
Link to comment
Share on other sites

  • Developers

dont worry i found the reason.

on line 10 there was this command

#include "C:\Users\me\Desktop\logo.ico"

i deleted this and error was gone.

does anyone know there reason why this was a problem?

and why did it keep saying the error was line 6?

Well that is pretty easy: FileInclude is to include files that contain AutoIt3 code NOT Binary files. For that you would need to use FileInstall().

The Line 6 was probably referring to the Include file, not your source script?

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...