|
Overview | Statement List | Example/ K P' X+ D4 m7 b) Z
+ d! \ y6 J2 F6 o' I# ^4 C
) T% Y& N" D7 Y: z% Y
--------------------------------------------------------------------------------* a2 v4 y2 _- v! ^
8 l: S3 M! f0 `
Enter Parameters& W* W/ `/ S- Y; w% A, Y
Synopsis; P7 ^2 M Y7 K1 L# {" N# t" p5 T
PARAM/'message',{'option'[,INT],variable}+[,ALTACT,'message'],response
7 @+ T8 }* a: ?3 W! C3 y
: S7 ~& j0 q2 p8 Y: K0 RDescription
) b. P( j# ?/ r" Z- \This statement creates a data entry menu which is displayed in a dialog area 2 and allows the user to interactively assign numerical values to variables, which are associated with options in the menu.% ?) f0 u0 m5 o* z" ?8 Z- a: ^
8 B( w: W5 m- b- ?/ t1 v
We do not recommend using the asterisk character (*) in menu prompts or menu options.& z; C$ F- G, |- C' e
% D* s$ y4 O) U+ KThis command now requires an active part. If no active part exists an error message appears.6 T$ p) ]. ?" i* v5 A' E
: N$ z+ C1 g0 X+ u' m$ v5 VPARAM works with the Back, OK, Cancel, and the alternate action option. If Back is chosen during program execution while the PARAM statement is pending, the value of is assigned to the response variable. Cancel causes 2 to be assigned. OK causes 3 to be assigned. The alternate action option causes a value of 4 to be assigned.
) L5 E' A/ [3 ]
: g, Y9 H" A8 {You can create an alternate action option by using the minor word ALTACT, followed by a message, as the parameter just before the response variable. The ALTACT message displays as the last option in the dialog box. You can make the message up to forty characters long.
4 o, j# Z" O% R9 J: H
6 o/ F9 v3 p* a! F2 mBelow is a list of response values assigned to the response variable:
& Z5 v* n2 ]1 q6 a! `1 E5 V3 o/ W1 K- U
Response
7 V$ i& g2 |4 z r+ [ Assignment8 B! E( ~+ z4 D5 O8 N
( N' @: u4 P {3 sBack
! }& T$ m/ R" [- _* c, \ 1
# s9 f9 Q2 _1 }- V 1 W7 y: i7 O3 F6 G* o; ]8 l
Cancel
7 V& k2 q1 l3 ] 2
+ X# I6 }- m! u" f' I: ~ 0 D0 {5 }% ?$ G8 a0 I
OK
4 f/ j0 I, |6 }/ G+ V/ Q- i; b8 u 3# H. l1 i6 d& I+ F) u* L, x
1 [- n, m y: Z9 v& X. eAlternate Action8 e& e8 p$ o6 E/ `, M
4
1 h& R; g$ x, O 6 U$ h7 A$ w* G7 F, ]1 b8 J
8 ` a8 [( g. E/ P' s
Parameters# g9 m2 F- Y$ T" X$ C. e4 l2 `# T4 u
Parameter
' i" j" b& [; Q+ k# j. ~ Description
+ q* U7 z. n* P- U+ V/ O ' q# Z+ x2 T) O. V, s- j/ f3 z# e
'message'
/ {1 A7 V6 k6 M8 ^3 N A string which represents the title of the menu you want to display. The string can contain up to 40 characters.! h/ {7 k6 z; I. f' s
" @/ |# a) d) R" L0 T'option'$ ^; _/ f7 s6 N) z4 J, T; A
Each option defined is displayed on the menu created by the PARAM statement. The PARAM statement can contain a maximum of 14 options, each consisting of up to 20 characters. Options are truncated on some design stations.: |2 ?( ~ l6 z! B7 A
0 S, r5 k* |' O0 k0 r0 s2 @- B
INT
" a% A; u t C, ? q Minor word that indicates that the entered value must be an integer. This is indicated in the menu by the absence of a decimal point in the assigned value.5 f- n$ u2 B5 Z7 W
6 T2 |. T$ S% \0 c3 s& l
variable
5 n3 x1 B5 ~9 D2 ~) j The variables which are assigned the entered values. The PARAM statement may contain a maximum 14 variables, one for each of the options programmed.5 |# W2 t# c, _) Q+ N0 g8 B. N* U1 d
: T( X1 x, @; u* D4 _
ALTACT
+ ]: q8 m h0 O' |+ r$ N Minor word that indicates that the dialog box is to display an alternate action message. If the alternate action option is chosen, the response variable equals 4.
% m7 t9 m" k+ _4 J * p5 g) Z; X; [& W- F3 s! K5 p
'message'+ [+ B$ C' S; V; w: x! m
A string or string variable which represents the alternate action message. The string can contain up to forty characters.( E+ \% w: d. a$ V$ L5 Z6 l( G8 M R8 d
! V4 {- C, r5 [: P# c
response, K- N3 ^$ N) w; v6 c
A variable which is assigned a numerical value based on the user response.' d% F; O+ p- c7 G: s
) P3 n" a* G3 ~' l
f3 M1 A2 b# _9 I" W9 [--------------------------------------------------------------------------------
9 q( n$ X) i9 p, t1 M |
|