Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]字符数组处理

1楼
kuroneko 发表于:2023/9/14 11:11:00

想得到这种效果。数组hths中元素按fphms中元素对应排序,hths中元素重复时,将对应fphms中的元素进行拼接
QAXSZ230811B/23088:666
QAXSZ230811A/23079:36357132_36357333
QAXSZ230328A/23039: 36356847_36356864
2楼
有点蓝 发表于:2023/9/14 11:29:00
利用字典
dim dict as new dictionary(of string,string)
for i as integer = 0 to hths.length - 1
 if dict.containskey(hths(i)) then
dict(hths(i)) = dict(hths(i)) & "_" & fphms(i)
else
dict.add(hths(i), fphms(i))
end if
next

for each key as string in doct.keys
msgbox(key & ":" & dict(ke))
next
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02637 s, 2 queries.