Input/output routines in Visual J3 using forms 
Author Message
 Input/output routines in Visual J3 using forms

There was someone sending in a question earlier on how to create
input/output routines in J

I made a very simple example here on an input/output window for use
with J3


NB.  Example input/output window

NB. WPINPUT is a noun containing the description of the form
WPINPUT=: 0 : 0
pc input closeok;pn "Jod gluggi";
xywh 10 10 124 60;cc em editm ws_border ws_hscroll ws_vscroll;
xywh 229 11 36 14;cc close button;cn "Loka";
xywh 10 76 287 14;cc edit edit ws_border es_autohscroll;
pas 10 4;pcenter;
rem form end;

NB. button to close the window
input_close_button=: wd bind 'pclose'

NB. create the startup verb
inputdemo=: input_run

input_run=: 3 : 0
wd 'pshow'

NB. When the user has typed into the edit line and pressed enter
NB. the following verb starts
input_edit_button=: 3 : 0
  try. em=.":". edit NB. edit contains the input from the user
  catch. NB. If the user made an error we catch the error
    em=. LF,,LF,.}.;._2 [ 13!:12''
    em=. 'error in: ',edit,em
NB. The following line displays the result of executing the user
NB. input or an error message
wd 'set em *',,em

NB. start the input window


It does not need to be more complicated than this script shows to
create a window to interact with the user in J3

You can also take the script straight as is into the Visual part
of J3, Edit/form edit, and manipulate the form as you prefer.


http://www.*-*-*.com/ ~gosi

Sat, 19 Sep 1998 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. library routine to split POST and GET input from www Forms

2. Call a SQL stored procedure using input and output parameters

3. Using analog output to trigger analog input.

4. Using Parallel Port for Output and INPUT

5. using the previous output as input

6. Create polymorhpic output for I32 input (select output type)

7. Expect question: using patterns and 'send' in a -input/-output -input/-output loop

8. J3 problem using wd 'wait'

9. Outputting info from awk and using the info to name the awk output file

10. using Intel Visual Fortran with Visual C++ 2005 Express

11. Creating - Fortran 77 dll for use in Visual Basic 6.0 (not using Compaq Visual Fortran)

12. Question on using Compaq Visual FORTRAN with Microsoft Visual C++ 6.0


Powered by phpBB® Forum Software