[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: XPL Macro in/on a saveget key
- Subject: Re: XPL Macro in/on a saveget key
- From: Carl Distefano cldxtra@xxxxxxxx
- Date: Sat, 25 Mar 2000 01:15:15 -0500 (EST)
Reply to note from Harry Binswanger Sat, 25 Mar
2000 00:45:50 -0500 (EST)
-> Someday, perhaps, Carl will explain the basic structure of help
-> files and frames and JM2 and all that techy stuff that I've
-> never understood. Like: what's that {02) character doing at the
-> beginning of each module?
Aw shucks, Harry, there's nothing to it. Help routines are called
"frames". In Xy4, XyWin and NBWin, frames that run XPL programs are
"Type 5" frames. You put the program name, preceded by the type
number, in double curly braces. The program code starts on the next
line and is sandwiched between two Ascii-2's. The Ascii-2's simply
tell Xy where the program begins and where it ends. The whole frame
looks like this:
{{5progname,proggy}}
{2}XPL code here{2}
The second name "proggy" is optional; it's a knickname or synonym or
alias for "progname".
To launch a U2 frame from within another XPL program, use func JM.
The syntax is JM 2.framenameQ2 . The "2." means it's a call to a U2
routine. If it were JM 1.framenameQ2 , Xy would look for the
framename in a (loaded) U1 file. If there's no number, as in
JM framenameQ2 , Xy looks for framename in a (loaded) .DLG file.
To call a U2 frame from a keyboard file, the procedure is the same
as with any other keyboard assignment. You stick commas after
characters and (optionally) after 2-character function calls.
nn=JM2,.,f,r,a,m,e,n,a,m,e,Q2
What could be simpler?
--------------
Carl Distefano
CLDistefano@xxxxxxxx
http://users.datarealm.com/xywwweb/