Jump to content
Sign in to follow this  
gcue

line error

Recommended Posts

gcue

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')

Share this post


Link to post
Share on other sites
Jos

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.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
gcue

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.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.