4GL Question about CONSTRUCT
Posted in 1999
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
Hi Informixers, is it possible to change the search expression created by the CONSTRUCT statement? What I want to do: - do an UPSHIFT of the contents of a field in the screen form and redisplay the contents to that field. I cannot use the UPSHIFT attribute in the form definition because the upshift should happen only under certain conditions. - automatically add a "*" to a field so the user doesn't have to type in the wildcard character himself I know how to get the contents of a field with the GET_FLDBUF() function, but what I need is some kind of PUT_FLDBUF(). Any help appreciated! Regards, Richard -- +--------------------------+------------------------------------------+ | Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | | EDV-Gruppe Anaesthesie | Tel : +49-89-7095-6110 | | Klinikum Grosshadern | FAX : +49-89-7095-6420 <-- NEW!!! | | 81366 Munich, Germany | GSM : +49-172-8933578 | +--------------------------+------------------------------------------+
Richard Spitz wrote in message <36F8FAFA.3D8385D@ana.med.uni-muenchen.de>... >Hi Informixers, > All you have to do is do a DISPLAY to the appropriate field. Examples below. >is it possible to change the search expression created by the CONSTRUCT >statement? > >What I want to do: > - do an UPSHIFT of the contents of a field in the screen form and > redisplay the contents to that field. I cannot use the UPSHIFT > attribute in the form definition because the upshift should happen > only under certain conditions. AFTER FIELD a LET record.a = get_fldbuf(a) IF condition THEN LET record.a = UPSHIFT( record.a ) DISPLAY BY NAME record.a END IF > - automatically add a "*" to a field so the user doesn't have to type > in the wildcard character himself > you've already guessed: CONSTRUCT .... BEFORE CONSTRUCT DISPLAY "*" TO ... >I know how to get the contents of a field with the GET_FLDBUF() function, >but what I need is some kind of PUT_FLDBUF(). > >Any help appreciated! > >Regards, Richard >-- >+--------------------------+------------------------------------------+ >| Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | >| EDV-Gruppe Anaesthesie | Tel : +49-89-7095-6110 | >| Klinikum Grosshadern | FAX : +49-89-7095-6420 <-- NEW!!! | >| 81366 Munich, Germany | GSM : +49-172-8933578 | >+--------------------------+------------------------------------------+