一个简单的问题!!!!

happy_gambler 2001-10-10 08:57:48
我有一段文字如下:

参 考 文 献

1 S Fields,O Song.A novel genetic system to detect protein- protein
interactions.Nature,1989, 340:245~246
2 R Brent,R L F Jr.Understanding gene and allele function withtwo-hyb
rid methods.Annu Rev Genet,1997, 31:663~704
3 Gyuris J,Golemis E,Chertkov H,Brent R.Cdi1,a human G1 and S phase pr
otein phosphatase that associates with Cdk2.Cell,1993, 75(4):791~803
4 Silver PA,Brent R,Ptashne M.DNA binding is not sufficient for nucl
ear localization of regulatory proteins in Saccharomycescerevisiae.Mol
Cell Biol,1986, 6(12):4763~4766

我想将参考文献分条存进一个数组或者加入到listview中,如何实现?
...全文
50 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenwhenlong 2001-10-10
  • 打赏
  • 举报
回复
Private Sub SaveInArray(sText as String)
dim sArr() as String
if Left(sText,2)=vbCrLf then sText=Mid$(sText,3)
if Right(sText,2)<>vbCrlf then sText=sText & vbCrLf
Do While InStr(1,sText,vbCrLf)>0
On Error Resume Next
Redim Preserve sArr(UBound(sArr)+1) As String
If Err then ReDim sArr(1) as String
On Error Goto 0
sArr(UBound(sArr)-1)=Mid$(sText,1,InStr(1,sText,vbCrLf)-1)
sText=Mid$(sText,InStr(1,sText,vbCrLF)+2)
Loop
End Sub
luckywb 2001-10-10
  • 打赏
  • 举报
回复
上面一段话中有代标号的4条文献,我想将他们分开存进数组,例如将

1 S Fields,O Song.A novel genetic system to detect protein- protein
interactions.Nature,1989, 340:245~246

存入a(0),将

2 R Brent,R L F Jr.Understanding gene and allele function withtwo-hyb
rid methods.Annu Rev Genet,1997, 31:663~704

存入a(1)


leskey 2001-10-10
  • 打赏
  • 举报
回复
我不是很明白你的问题.

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧