Re: Using values from CONSTRUCT
Posted in 1995
From Dennis Pimple: * Joao Natal (natal@telepac.pt) wrote: * : +--- char(6) * : | * : v * : CONSTRUCT BY NAME char_var ON table.col1, table.col2, ..., table.coln * : AFTER FIELD col1 * * off the top of my head (i.e.: check my syntax): * LET lcol1 = get_fldbuf(col1) * WHILE LENGTH(lcol1) < 6 * LET lcol1 = " ", lcol1 CLIPPED * END WHILE * DISPLAY lcol1 TO col1 Please change to: LET lcol1 = get_fldbuf(col1) IF LENGTH(lcol1) > 0 THEN WHILE LENGTH(lcol1) < 6 LET lcol1 = " ", lcol1 CLIPPED END WHILE DISPLAY lcol1 TO col1 END IF Otherwise is nothing is entered, it will loop forever. { Just a syntax checker }, Robert Minter |Data Systems Support| \\\\\\_/// Programmer, Software Development | Orange, CA | ( _ _ ) rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) De Colores - Emmaus OC-13 | Fax: 714.771.3028 | \\`-'/ #include <disclaimer.h> SURF'S UP \\_/