Post Reply 
Is it possible to attach some text help to my user functions.
02-13-2018, 06:17 PM
Post: #1
Is it possible to attach some text help to my user functions.
Is it possible to attach some text help to my user functions. The user functions in HP Prime now appear in italics in the main Catlg.
Find all posts by this user
Quote this message in a reply
02-13-2018, 07:32 PM
Post: #2
RE: Is it possible to attach some text help to my user functions.
(02-13-2018 06:17 PM)John P Wrote:  Is it possible to attach some text help to my user functions. The user functions in HP Prime now appear in italics in the main Catlg.

yes, the user functions appear in italics in the Catalog and I think this is a great thing, very useful to see if a user function have (erroneously) the same name of a system one and for other reason.
Still is not possible to attach some help (besides the comments //). I do hope in a next version to have a way to get a help to show in the Catalog pressing on the user name function.
In the present FW it isn't possible.

Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
02-15-2018, 07:01 PM
Post: #3
RE: Is it possible to attach some text help to my user functions.
Have you considered created a wrapper (CAS) program that checks the arguments?

Code:

#cas
myprog(args):=
BEGIN
  local s:=SIZE(args);
  CASE
    IF s==0 THEN
      // code for when no arguments supplied
      // presumably here is where you can display some help text or even
      // just return a string with some info on how to use the command
    END;
    IF s==1 THEN
      // code for when a single argument is supplied
      // or simply call another program:
      RunMyHOMEProg(args);
    END;
  END;
END;
#end

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
02-15-2018, 08:08 PM
Post: #4
RE: Is it possible to attach some text help to my user functions.
(02-15-2018 07:01 PM)Han Wrote:  Have you considered created a wrapper (CAS) program that checks the arguments?

Code:

#cas
myprog(args):=
BEGIN
  local s:=SIZE(args);
  CASE
    IF s==0 THEN
      // code for when no arguments supplied
      // presumably here is where you can display some help text or even
      // just return a string with some info on how to use the command
    END;
    IF s==1 THEN
      // code for when a single argument is supplied
      // or simply call another program:
      RunMyHOMEProg(args);
    END;
  END;
END;
#end

Thank you Han, it seams convincing and should work. I will try it.
Cheers
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)