For i:=0 to Strings.count-1 do
  String:=String+strings[i];

解决方案 »

  1.   

    是否要TStrings的文字内容啊,可用TString.text。
      

  2.   

    HZADOQuery.SQL:='SELECT dwmc as [HZfield], sum(ysje) AS [counter] FROM main GROUP BY dwmc';
    这样写说类型不匹配,应该怎么写才正确.
      

  3.   

    HZADOQuery.SQL.Text:='SELECT dwmc as [HZfield], sum(ysje) AS [counter] FROM main GROUP BY dwmc';
      

  4.   

    TStrings和String是两个概念呀,建议你看一下TStrings的帮助:Derive a class from TStrings to store and manipulate a list of strings. TStrings contains abstract methods and should not be directly instantiated.Descendants of TStrings can represent several individual strings, such as the individual lines that appear in a list box. Some objects use descendants of TStrings to represent one long body of text so that it can be manipulated in smaller chunks.
      

  5.   

    TStrings通常可以包含String和Object两个重要信息。同时还可以包含另外的TStrings
      

  6.   

    HZADOQuery.Close;
    HZADOQuery.SQL.Clear;
    HZADOQuery.SQL.Add('SELECT dwmc as [HZfield], sum(ysje) AS [counter] FROM main GROUP BY dwmc');
    HZADOQuery.Open;