Post Reply 
Is it possible to attach some text help to my user functions.
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 


Messages In This Thread
RE: Is it possible to attach some text help to my user functions. - John P - 02-15-2018 08:08 PM



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