Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» TCnHashTable 怎么遍历
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: TCnHashTable 怎么遍历
传奇迹说
新警察
UID 40857
Digest Posts 0
Credits 46
Posts 15
点点分 46
Reading Access 10
Registered 2008-9-1
Status Offline
#1
Post at 2010-4-26 11:52
Profile
|
Blog
|
P.M.
TCnHashTable 怎么遍历
for I := 0 to TList.Count -1 do
begin
Obj:=TObject(TList[I]);
Obj.Free;
end;
TCnHashTable ???
有个函数
GetKeys
难道要 GetValues(GetKeys(I)) ???
感觉饶圈了啊
有Index 还要 Key....
传奇迹说
新警察
UID 40857
Digest Posts 0
Credits 46
Posts 15
点点分 46
Reading Access 10
Registered 2008-9-1
Status Offline
#2
Post at 2010-4-27 14:32
Profile
|
Blog
|
P.M.
UP
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#3
Post at 2010-4-27 20:29
Profile
|
Blog
|
P.M.
TCnHashTable目前确实未提供直接遍历的方式,暂时只能用GetValues(GetKeys(I))。
TCnHashMap提供了StartEnum以及GetNext的遍历方式,目前可以使用。
传奇迹说
新警察
UID 40857
Digest Posts 0
Credits 46
Posts 15
点点分 46
Reading Access 10
Registered 2008-9-1
Status Offline
#4
Post at 2010-4-28 21:32
Profile
|
Blog
|
P.M.
谢谢 大大的回复
自己加还有点麻烦.
代码还没看完.
尝试中...
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-27 11:56
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007982 second(s), 7 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats