|
shazara Beginner
Joined: 17 Feb 2003 Posts: 16 Location: USA
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Mar 26, 2006 6:38 am |
I believe this should do it however zmud is not open in front of me to check
myvar=%leftback(@myvar,1)
For more advanced control read up on
%copy, %len
[Edit: Realy it should work now] |
|
|
|
shazara Beginner
Joined: 17 Feb 2003 Posts: 16 Location: USA
|
Posted: Sun Mar 26, 2006 6:50 am Solution? |
Well, it does return the last character, but I couldn't see how it helped me delete that character, since it's not unique and the string has a changing length. This is what I ended up doing...let me know if there's a better way?
#LOOP 1,(%len(@myvar)-1) {#VAR myvar2 {@{myvar2}%copy({@myvar}, %i, 1)}} |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Mar 26, 2006 10:48 am |
According the help file %leftback should work, i also went in and tested and %leftback works and is alot quicker then trying to use a loop
myvar="A String"
myvar=%leftback(@myvar,1)
#SHOW @myvar
A Strin |
|
|
|
|
|