RE: Retain values in construct statement
"David Tobin" <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
Bill,
When you exit the 'construct 2' use 'get_fldbuf' to save the the values
entered in the screen fields.
Ie
LET l_string1 = NULL
LET l_string2 = NULL
WHILE(TRUE)
LET l_going_up = FALSE
CONSTRUCT BY NAME where_string1 ON screen_field1,
screen_field2
BEFORE CONSTRUCT
DISPLAY l_string1 TO screen_field1
DISPLAY l_string2 TO screen_field2
AFTER CONSTRUCT
LET l_string1 = get_fldbuf(screen_field1)
LET l_string2 = get_fldbuf(screen_field2)
END CONSTRUCT
CONSTRUCT BY NAME where_string2 ON screen_fielda,
screen_fieldb
AFTER CONSTRUCT
IF 'your condition here ??' THEN
LET l_going_up = TRUE
END IF
END CONSTRUCT
IF NOT l_going_up THEN
EXIT WHILE
END IF
END WHILE
1st time through the initialized varables will be displayed, 2nd time
through the varables will contain the data that was previously entered.
Or something like that.
Regards
Dave Tobin
Reece Australia
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Bill Yap
Sent: Tuesday, 12 April 2005 3:48 AM
To: [email protected]
Subject: [fourjs-users] Retain values in construct statement
To all,
is it possible to retain values entered in contruct statement?
For example, CONSTRUCT 1 and CONSTRUCT 2, entered some values in
CONSTRUCT 1, move to CONSTRUCT 2 - then entered some values in CONSTRUCT 2.
Now go back to CONSTRUCT 1. Values entered before is still in the fields.
Tried to look in the forums and manual but could not find anything. Any
help would be greatly appreciated. Thanks.
regards,
Bill Yap
Log-ON Business Systems, LLC