Dear,

Very important is that one statement is using on one line.
In your situation:
code:
?"-       289-"+@time+"- @error @serror "? :check4availabledevice
?"- 290-"+@time+"- @error @serror "? $potentialdevicenameslist = "Y:","X:","W:","V:","U:",
?"- 291-"+@time+"- @error @serror "? "T:","S:","R:","Q:","P:","O:",
?"- 292-"+@time+"- @error @serror "? "N:","M:","L:","K:","J:","I:",
?"- 293-"+@time+"- @error @serror "? "H:","G:","F:","E:","D:"

is using four lines.
Replace it with
code:
?"-       289-"+@time+"- @error @serror "? :check4availabledevice
?"- 290-"+@time+"- @error @serror "? $potentialdevicenameslist = "Y:","X:","W:","V:","U:",
"T:","S:","R:","Q:","P:","O:",
"N:","M:","L:","K:","J:","I:",
"H:","G:","F:","E:","D:"

or
code:
?"-       289-"+@time+"- @error @serror "? :check4availabledevice
?"- 290-"+@time+"- @error @serror "? $potentialdevicenameslist = "Y:","X:","W:","V:","U:","T:","S:","R:","Q:","P:","O:","N:","M:","L:","K:","J:","I:","H:","G:","F:","E:","D:"

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA