|
Atreides_096 Wanderer
Joined: 21 Jan 2005 Posts: 99 Location: Solvang, CA
|
Posted: Thu Jul 13, 2006 10:22 pm
Expanding values inside of a loopdb into an alias or var |
Trying to write a script that will loop through a db, and then write aliases with the value of the key.. I've tried everything I can think of.. all of the values are there, and zmud sees them, but whenever I use #va or #al on a line, it just writes the text verbatim. Have tried using %expand/#exe/%db/%val, etc... anyway, here is the pertinent code:
Code: |
#loopdb @AreaSwalks_DB {
#pr SwalkWriterTemp {What would you like to name the speedwalk to %key~?}
#pr SwalkWriterTemp {Make sure you have the swalk you want to %key typed correctly, fix it if needed ~(last chance~):}
#gagon
#unal @SwalkWriterTemp
#unal @SwalkWriterTemp {Swalks}
#unal @SwalkWriterTemp {Speedwalks}
#unal @SwalkWriterTemp {Areas}
#al @SwalkWriterTemp {%val} {Swalks}
#unvar SwalkWriterTemp
#unvar SwalkWriterTemp2
#gagoff
}
|
The %val just writes in as "%val"... does the same if I try to put it into a variable and then put the variable in an alias, etc... anyone have any ideas?
Thanks a lot :)
PS: Also, does anyone know of a variant of #unpath? Or is there no way to delete paths that way? |
|
|
|
Atreides_096 Wanderer
Joined: 21 Jan 2005 Posts: 99 Location: Solvang, CA
|
Posted: Fri Jul 14, 2006 7:53 am |
I got the answer from a friend of mine :)
Code: |
#EXEC %concat("#al @SwalkWriterTemp {",%val,"} {Swalks} ") |
|
|
|
|
|
|
|
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
|
|