|
Lyriikka Beginner
Joined: 02 Oct 2002 Posts: 21 Location: Finland
|
Posted: Fri Oct 25, 2002 3:12 pm
to make variables equal in length |
Whats the best way to add blank spaces into a variable to make them equal in lenght?
Normally:
#show @one |
#show @two |
jing |
jingjang |
I want:
#show @one |
#show @two |
jing |
jingjang |
Is there better(=faster/easyer) way than %repeat( %char( 32), %eval( 11-%len( @one))) to do this?
Lyriikka the GenTnLadyLover |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Fri Oct 25, 2002 3:27 pm |
If you just want it to display lined up, then your looking for the %format command.
#sh %format(&10s,@one)
#sh %format(&10s,@two)
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.34
Zmapper Version 1.10 |
|
|
|
Lyriikka Beginner
Joined: 02 Oct 2002 Posts: 21 Location: Finland
|
Posted: Sun Oct 27, 2002 8:53 pm |
Thanks! After little tweaking that works great.
Lyriikka the GenTnLadyLover |
|
|
|
|
|