Spaces

guzmere
18 Apr 2013, 09:00@ Pertex I'm sorry to bother you but last year you wrote me a small program for allowing me to have a certain number of empty spaces from the left edge of the screen before I could start my text and that worked beautiful. Alas in 5.4 it totally ignores the program. I was wondering if you could tell me the difference, pretty please. lol.
<function name="whitespaces" parameters="number" type="string"><![CDATA[
text = ""
for (x, 1, number) {
text = text+ " "
}
return ("<b>"+text+"</b>")
]]></function>
All I would have to write is whitespaces(number) + "text"
Thanks Terry.
Happy Adventuring 
<function name="whitespaces" parameters="number" type="string"><![CDATA[
text = ""
for (x, 1, number) {
text = text+ " "
}
return ("<b>"+text+"</b>")
]]></function>
All I would have to write is whitespaces(number) + "text"
Thanks Terry.



Pertex
18 Apr 2013, 09:25The output changed to html in Q5.4 so you can use this function now:
<function name="whitespaces" parameters="number" type="string"><![CDATA[
text = ""
for (x, 1, number, 1) {
text = text+" "
}
return (text)
]]></function>

guzmere
18 Apr 2013, 09:31Brilliant, smashing, super, great, wonderful, soooooooooooooo many thanks. Such a little difference makes a world of greatness.
Happy Adventuring
Terry.

