 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
code error? |
|
Hi, the script editor says the following code has a syntax error, but I can't see it?
dim newnames, string
Concatex( "\"", "CHQonusInwards.txt", "\"\,", &
"\"", "DESonusInwards.txt", "\"\,", &
"\"", "ISLout.txt", "\"\,", &
"\"", ""PLK", @T"ddmm", ".01", "\"", newnames)
Cheers
|
|
Wed Dec 19, 2007 6:58 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
It doesn't seem to like a lot of special symbols mixed with line continuation. Once I straitened it into a single line, the syntax error stopped.
By the way, you may want to "simplify" this code, the concatenation is not really required, it can be all done in the dim statement (as a single line)
 |
 |
dim orignames, string, "\"CHQonus@T"yyyyddmm".001\"\,\"DESonus@T"yyyyddmm".001\"\,\"ISLout.transactions.ascii@T"yyyyddmm".001\"\,\"plk@T"yyyyddmm".001\""
|
|
|
Wed Dec 19, 2007 7:23 pm |
|
 |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
|
|
Sorry I edited that post after I put it in as I pasted the wrong statement.
This is the real one.
dim newnames, string
Concatex( "\"", "CHQonusInwards.txt", "\"\,", &
"\"", "DESonusInwards.txt", "\"\,", &
"\"", "ISLout.txt", "\"\,", &
"\"", ""PLK", @T"ddmm", ".01", "\"", newnames)
|
|
Wed Dec 19, 2007 8:52 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
It's the same issue here. If you remove line breaks, I mean & symbols and move the complete ConcatEx statement to a single line, the syntax errors will disappear. It seems like the JAL parser doesn't like mix of special symbols like \" and statement continuation using & symbols.
|
|
Wed Dec 19, 2007 9:55 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|