BASIC menu - but COMPLETE

A General Discussion forum for TI calculators

Moderator: MaxCoderz Staff

Post Reply
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

BASIC menu - but COMPLETE

Post by King Harold »

Image
Impressive?
No. But its entirely in BASIC (well, ok, it uses xLIB for the textinverse)
you may download the program here.
The group also includes the program XOR, which is just there because you can't group just 1 program from the TI OS and I didn't really want to write a program just to group a program..
So if any BASIC programmer ever needs a cool menu that isn't all that fast... (note that it Does actually respond to number keys, not to Alpha keys though because it would require alphabetic sorting, which I made in BASIC but would be far too slow for menu's)

Let me know what you think :)


little edit: you could put in as many items as you want, when you press enter it will put the index in Ans (starts with 0 on the first item, just like normal menu's)
Last edited by King Harold on Mon 06 Nov, 2006 3:24 pm, edited 1 time in total.
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

Nice. Can it handle multiple headers (like the program menu, for example)? That would be the only reason I can see people using it.
I think, therefore iMac
Image
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Well, it could, I'll put it in tonight..
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

Seems a bit slow, no (since it's BASIC, I doubt if it could be made faster anyway)? I understand why you made it, but wouldn't programmers be better off just using Menu()?
Image Image Image
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Ofcourse they would, unless they want to dynamically change the text (counter? keydetect other then enter and arrows and numbers?)
And ofcourse I wanted to show off my BASIC skills again ;) not that this is really cool.. but I thought it was quite nice.
Oh and it's possible to have multiple headers.
User avatar
CDI
Maxcoderz Staff
Posts: 321
Joined: Tue 24 May, 2005 7:25 pm
Location: If I find out, you'll be first to know.
Contact:

Post by CDI »

Menu() is ick! It uses lbl and goto! And if used improperly [ most of the time they are ] it's all kinds of ick!

This proggie is nice though
ImageImage
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Thanx ;)
Post Reply