兄弟们!
    请问这个问题如何实现。AA:='个税>800';
BB:='应发工资*(1-0.05);if AA then ADOQuery['应发工资']:=BB

解决方案 »

  1.   

    另举例:AA:=15
    BB:='AA<20'
    CC:='AA-10'if BB then AA:=CC;foxpro:
    if &BB then AA=&CC;
      

  2.   

    你是说怎么写这个条件的sql么?
      

  3.   

    另举例:AA:=15
    BB:='AA<20'
    CC:='AA-10'if BB then AA:=CC;像foxpro的宏替换:
    if &BB
      AA=&CC
    endif
    谁能实现。
      

  4.   

    var
      BB: boolean;
    begin
      BB := AA<20;
      ...
      

  5.   

    另举例:
    AA:=15
    BB:='AA<20'
    CC:='AA-10'if BB then AA:=CC;  
    // if AA<20 then AA:=AA-10; 
    // 字符串BB中放入'AA<20' 逻辑表达式
    // 字符串CC中放入'AA-10' 运算表达式
    // AA得到CC运算表达式的值像foxpro的宏替换:
    if &BB
      AA=&CC
    endif
    谁能实现。