如题,比如一个数组为[A1][一号],[A1][二号],[A2][一号],[A2][二号],[A2][三号],[A3][一号]
如何只得到A1,A2,A3,重复的值就不要了...
如何只得到A1,A2,A3,重复的值就不要了...
解决方案 »
- 100分,求 delphi 怎么发Exchange系统的邮件?
- (100分)哪位大大帮忙写个SSL登陆的示例?
- 哈尔滨delphi职位,有两年以上工作经验优先,工资待遇从优,年薪2-5万。
- 如何根据用户的角色权限显示MainMenu中的某些菜单
- 请问 DbGridEh 用 clientdataset 作数据源时 怎样 实现 点击 列头 时 实现 排序 ??????????
- 求HMAC-SHA算法,请各位大侠帮忙
- 请教:如何调用动态连接库!
- 关于拦截网络消息的问题,高人助我!
- 怎样通过ADO创建一个MDB(Access2000)文件?即是一个库。
- 如何断开与某个IP的连接?
- 用Delphi编写CGI程序,哪位大侠能给个简单的例子来参考
- 日期是STRING类型的 怎么取年月进行查询啊 高手请帮忙写下SQL语句.谢谢!!
tempList,strList:TStringList;
i:Integer;
begin
strList:= TStringList.Create;
tempList:= TStringList.Create;
try
strList.Add( 'aa' );
strList.Add( 'aa' );
strList.Add( 'aa' );
strList.Add( 'aa' );
strList.Add( 'bb' );
strList.Add( 'bb' );
strList.Add( 'bb' );
for i:=0 to strList.Count-1 do
begin
if tempList.IndexOf( strList.Strings[ i ] ) = -1 then
begin
tempList.Add( strList.Strings[ i ] );
end else
begin
//重复记录。+1
end;
end;
for i:=0 to tempList.Count-1 do
begin
self.Memo1.Lines.Add( tempList[ i ] );
end;
finally
tempList.Free;
strList.Free;
end;