TI-89 HomeGames ArchiveTitanium GamesGames How ToProgramsFAQForumTI-89 WikiLinks

Function/Program Catalog Help Window Text

 
Post new topic   Reply to topic    Your TI-89 Resource Forum Index -> BASIC Programming
Author Message
KrazyKaveman



Joined: 28 Feb 2011
Posts: 1

PostPosted: February 28, 2011 11:07 PM    Post subject: Function/Program Catalog Help Window Text Reply with quote

I have a lot of user-defined functions that I use and I can never remember what order the parameters are supposed passed. I know that I can just look in the editor, but what I would really like to do is put to put one some text identifying each parameter's purpose below the window like when you select a built in function from the catalog. I am assuming that this would be the same text that appears when you select help on a one of the built in functions.

Does anyone know how to assign the help text to user-defined functions?

Thanks
Back to top
View user's profile Send private message
mellamokb



Joined: 10 May 2007
Posts: 124

PostPosted: March 8, 2011 9:58 PM    Post subject: Reply with quote

Hi KrazyKaveman,

I do not believe that is possible. However, you might try some workarounds.

Create a help() function that displays the functions and expected parameters when you pass in your custom function name:

Code:

help(fnname)
Func
If fnname="dist" then
"dist(x1,y1,x2,y2): point distance of (x1,y1) and (x2,y2)"
ElseIf fnname="prod" then
"prod(a,b): returns product of a and b"
Else
"unknown function"
EndIf
EndFunc



There are also many variations on this theme, e.g., using a help() function that lists all of your user-defined functions and their parameters, or a interactive menu / display window with descriptions, etc.

Hope this helps!

Regards,
~ mellamokb[/code]
Back to top
View user's profile Send private message
Display posts from previous:    View previous topic : View next topic  
Post new topic   Reply to topic    Your TI-89 Resource Forum Index -> BASIC Programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Contact Us | Privacy Policy | Disclaimer | Trademarks

Copyright ©2006 All rights reserved.


Free Greeting Cards | Girly Myspace Layouts | Myspace Unblocker |