Omnimaga

Calculator Community => Other Calculators => Topic started by: Raylin on August 06, 2010, 01:19:16 pm

Title: String Padder
Post by: Raylin on August 06, 2010, 01:19:16 pm
Updated.

Download the updated version here. (http://www.omnimaga.org/index.php?action=downloads;sa=downfile&id=537)
Title: Re: String Padder
Post by: _player1537 on August 06, 2010, 01:27:34 pm
I'm sorry, what does this do again?
Title: Re: String Padder
Post by: Raylin on August 06, 2010, 01:32:34 pm
If you have code like this:

Code: [Select]
:If A=1
:Disp "ITEM 1
:If A=2
:Disp "ITEM 2
etc...
Code: (Optimized) [Select]
:Disp sub("ITEM 1ITEM 2ITEM 3",6A-5,6)
This program creates the above string used in the sub() command.
Basically, it makes a unified string and adds the spaces for you.
Title: Re: String Padder
Post by: _player1537 on August 06, 2010, 01:37:18 pm
I see, very cool :D  I personally might not use it, but still very nice
Title: Re: String Padder
Post by: DJ Omnimaga on August 06, 2010, 09:21:58 pm
Interesting, this could be useful when it come to development of some games like RPGs  with plenty of menus.