mellamokb
Joined: 10 May 2007 Posts: 124
|
Posted: March 8, 2011 9:58 PM Post subject: |
|
|
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] |
|