BURATI@ulowell.CSNET ("Michael R. Burati") (08/19/86)
I'm working on a project using (and learning at the same time) FMS ver2.3 on VMS 4.4. The people that I'm doing the project for want the UP/DOWN arrow keys to perform the PREVIOUS/NEXT-FIELD functions, instead of using the TAB/BACKSPACE default keys. I tried the examples given in the manual (p 5-17) but couldn't get it to work (note: I had to convert their example to PASCAL for my use). This is what I tried. VAR Keytable: ARRAY [1..4] OF INTEGER; BEGIN Keytable[1] := FDV$K_KF_NTR; Keytable[2] := 1033; Keytable[3] := FDV$K_KF_NXT; Keytable[4] := 1037; FDV$ATERM(%DESCR(TCA),12,2); FDV$DFKBD(%DESCR(Keytable),2); The call returned FDV$_KIF, which specifies that an "Illegal key function was given". What did I do wrong? Does anybody have an example (in PASCAL preferably) to do this? An example of defining the ARROW keys as I mentioned above, would be even better. Please include any related commands that must be executed along with the DFKBD command... Please mail responses directly to me, the machine that I normally read this group on will be down for a while. Thanks, Michael Burati University of Lowell CS Dept CSNET: burati@ulowell.csnet
BURATI@ulowell.CSNET ("Michael R. Burati") (08/21/86)
Hi, I'm currently working on a project using FMS from PASCAL (FMS 2.3?, VMS 4.4) and need to define the UP/DOWN arrow keys to perform the functions that the TAB/BACKSPACE keys default to (NEXT and PREVIOUS field functions). I can't even get the example from the manual (after I converted it to PASCAL from FORTRAN) to work. Does anybody have any PASCAL examples showing me how to do this (including TYPE,VAR definitions for the key table and any other FMS commands that must be executed along with the FDV$DFKBD to work right (ie FDV$ILTRM...). Michael Burati University of Lowell CS Dept. CSNET: burati@ulowell.csnet UUCP: {wanginst | apollo | vaxine | masscomp | datacube } !ulowell!burati ps: Please mail examples directly to me so that this group isn't deluged with FMS examples.