 |
gmueller Apprentice
Joined: 06 Apr 2004 Posts: 173
|
Posted: Sun Nov 13, 2005 11:03 pm
possible problems in %expandlist |
Let:
queue = "A|B|C"
And consider the function:
%expandlist(@queue, " %cr")
when I run this from the command prompt such as:
#SAY %expandlist(@queue, " %cr")
I get:
A %crB%cr C%cr
when I run it from an alias:
#ALIAS status_update {status_variable = %expandlist(@queue, " %cr")}
and then look at the contents of status_variable
I get:
status_variable = "A"
Question: why is this happening, and how do I prevent it. |
|
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Nov 13, 2005 11:21 pm |
Don't use quotes around the %cr
#SAY %expandlist(@queue,%cr)
status_variable=%expandlist(@queue,%cr)
#SAY @status_variable |
|
|
|
 |
|
|
|
|
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
|
|