请教:Edit1.Text := vartostr(ClientDataSet1.Aggregates.Items[0].Value);
为何不能得到Aggregate字段的值?

解决方案 »

  1.   

    可能那个Aggregates.Items[0]当前是不活动的,所以应该用: ActiveAggs—————————————————————————————————
    宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
    —————————————————————————————————
      

  2.   

    我的Aggregates.Items[0]已经是活动的了,已经active了
    还是不行,苦恼阿!!!
      

  3.   

    Do not use Aggregates to obtain summarized values maintained by the client dataset. Aggregates can contain TAggregate objects that are not currently active. Instead, use the ActiveAggs property, which represents only those TAggregate objects that are currently active.