home *** CD-ROM | disk | FTP | other *** search
- /* CHelp script for FrexxEd - Lookup keywords in includes and
- * autodocs using CHelp.
- *
- * Written by Mathias Axelsson 940209
- * Updated 940924 to work without any external ARexx script
- *
- */
-
- export CHelp_lookup()
- {
- string a, res;
- int newid, oldid;
-
- a = GetWord();
- if (strlen(a) == 0)
- a = PromptString("", "Request", "Please enter lookup keyword");
-
- res = ARexxSend("CHELP1", joinstr("lookup ", a), 60);
- if (!strcmp(res, "1"))
- {
- oldid = GetEntryID(); /* Save current view id */
- newid = New(); /* Create new view */
- Activate(newid, 1); /* Split current view into two parts */
- CurrentBuffer(newid); /* Activate new view */
- SetInfo(newid, "tab_size", 8);
- Load("T:chelp.lup"); /* Load lookup file into view */
- CurrentBuffer(oldid); /* Activate old view */
- }
- }
-