4 Replies Latest reply: Apr 13, 2012 6:11 AM by xiaodengzi1673 RSS

    how to use a viarable to receive a field value

      run the following script ,I get xx.qvd;

      what's wrong with it ?

       

       

      test:

      load *;

      select 2 as a,4 as b;

      Concatenate

      select 3 as a,5 as b;

       

      let xx=max(FieldValue( 'a', 1 ));

      let yy=max(FieldValue( 'b', 1 ));

       

      if xx<yy then

      store test into yy.qvd;

      ELSE

      store test into xx.qvd;

      ENDIF;