对于vb.net的 find的语法!

baozi1984 2003-11-19 07:38:47
datatable的find具体咋么用!
谢谢了
...全文
122 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
csmmn3 2003-11-19
  • 打赏
  • 举报
回复
' Macro Editor
Imports VSLangProj
Public Sub FindExample()
' First project is a Visual Basic or C# project.
Dim theVSProject As VSProject = _
CType(DTE.Solution.Projects.Item(1).Object, VSProject)

Dim refs As References = theVSProject.References
Dim firstIdentity As String = refs.Item(1).Identity
Dim firstRef As Reference = refs.Find(firstIdentity)
' Are they the same object?
Dim isSame As Boolean = (firstRef.Identity = refs.Item(1).Identity)
MsgBox("Are they the same? " & isSame.ToString())
End Sub

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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