Re: Form Field Copy
Posted in 1994
From emh7.korea.army.mil!EAPC-AMO2@uunet.uu.net: * * Using Informix On-line 4.00.UE1's forms, how do I, based upon user input, * concatenate one field to another? * * i.e. * * [f0001 ] * [f0002 ] * * If the user enters "9A" in f0001, I want to add what was originally in f0001 to * the end of whatever was originally in f0002. However, if the user enters * anything else, I want to leave f0002 alone. What instructions do I need to * give in the before and after edit/update? Try the following: DEFINE hold_field CHAR( 7 ) -- Based on your example BEFORE FIELD field1 -- ( f0001 ) LET hold_field = field1 AFTER FIELD field1 IF field1 = "9A" THEN IF NOT LENGTH( field2 ) THEN LET field2 = hold_field CLIPPED ELSE LET field2 = field2 CLIPPED, hold_field CLIPPED END IF DISPLAY BY NAME field2 END IF Hope this helps, Robert Minter |Data Systems Support| \\\\\\_/// Programmer, Software Development | Orange, CA | ( _ _ ) internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/ #include <disclaimer.h> \\_/