Author Topic: String Padder  (Read 2595 times)

0 Members and 1 Guest are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
String Padder
« on: August 06, 2010, 01:19:16 pm »
« Last Edit: August 06, 2010, 01:20:09 pm by Raylin »
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







_player1537

  • Guest
Re: String Padder
« Reply #1 on: August 06, 2010, 01:27:34 pm »
I'm sorry, what does this do again?

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: String Padder
« Reply #2 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.
« Last Edit: August 06, 2010, 01:33:12 pm by Raylin »
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







_player1537

  • Guest
Re: String Padder
« Reply #3 on: August 06, 2010, 01:37:18 pm »
I see, very cool :D  I personally might not use it, but still very nice

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: String Padder
« Reply #4 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.