Hallo, Andy Graybeal hat gesagt: // Andy Graybeal wrote:
i'd like to pad a string... say for instance i want to pad the string "andy" and "ian" to be able to have a total of 10 characters, and the padding character will be an underscore. so the end result would add 6 underscores to the string "andy" and seven underscores to the string "ian": "andy______" "ian_______"
You may need to find some external that will give you the length of a symbol. Then substract that from your desired total length, make a list of that length with your symbol and use [list-l2s] from list-abs to build a single symbol out of your original string and the padding.
Or just install pdlua and use attached lua-external. Once you've install pdlua, you can do all kinds of string/symbol processing using Lua's string library easily.
Frank Barknecht _ ______footils.org__