Jump to content

line error


gcue
 Share

Recommended Posts

i get a line error with this part.. cant get the quotes right on the long line

can anyone help?

thanks.

$text=('eh'&@CRLF& _
'Set-schema: HPD:Help Deskitsmprod'&@CRLF& _
'Query: 1000005125=1000005124=1000000688=1000000687=1000000398=1000000397=301291000=AST:CMDBAssoc CI UA CMDBAssoc301290700=AST:AssetPeople_AssetBase '301921200' = " & '"SYE"' & " AND '7' != " & '"Resolved"' & " AND '7' != " & '"Closed"' & " AND '7' != " & '"Cancelled"' "'&@CRLF& _
'end')
Link to comment
Share on other sites

  • Developers

you will have to post some more information to be able to help you. couple of remarks:

What are the "strange characters" before the numbers in the posted line ?

Double up the single quotes with its a single quoted string.

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

thanks for replying..

this is a remedy macro - not sure what the single quote is for

i had this working when it was all in one line..

$text="ehSet-schema: HPD:Help DeskitsmprodQuery: 1000005125=1000005124=1000000688=1000000687=1000000398=1000000397=301291000=AST:CMDBAssoc CI UA CMDBAssoc301290700=AST:AssetPeople_AssetBase '301921200' = " & '"SYE"' & " AND '7' != " & '"Resolved"' & " AND '7' != " & '"Closed"' & " AND '7' != " & '"Cancelled"end'

then when i tried putting line breaks the long line stopped working.

this one has line breaks - sorry figured it was a different problem.. and if i replied to an old topic it might not get read.

thanks tho.

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...