亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frmadditem.frm

?? vb開發的一個opcclient源代碼
?? FRM
?? 第 1 頁 / 共 3 頁
字號:
                End If
            End If
        Loop
    End If

End Sub

' This function will go an get the current tags available at this
' branch of the server's browse tree. This is done using the
' ShowLeafs function of the browser interface.  Unlike the
' browsing for branches using the ShowBranches function, we now
' want to use the three methods available to filter tags(leafs) from
' the lsit returned  by the server.  By default these filters are
' all disabled or in a show everything state.
'
Private Sub tvBranchView_Click()

    Dim SelectedNode As Node
    
    Set SelectedNode = tvBranchView.SelectedItem
    
    If Not SelectedNode Is Nothing Then
         Dim i As Integer
         Dim ItemName As String
         Dim DataTypeSelected As Integer
         Dim AccessSelected As Long
         
         ' Move to the current position of the treeview.  We need to do
         ' this each time since the use could move from one branch in
         ' the tree to a completely different branch not simple down one
         ' or up one.
         SetBrowsePosition SelectedNode.Key
        
         ' Clear any items that may currently be in the list view control.
         lvItemView.ListItems.Clear
         
         ' Set the Item name filter using the string found in the
         ' ItemNameFilter cotnrol.  By default this is "*" which
         ' most server take to mean everything.  You can use
         ' other wildcards such as ? in addition to *.  Using these
         ' Wildcard you can do some fairly fancy filtering. An example
         ' might be "Pressure_???_T*"  In this case and items with the
         ' the name "Pressure_" then three fields of anything then
         ' "_T" anything would be return when we call ShowLeafs.
         '
         OPCBrowserClassObj.SetFilter ItemNameFilter.Text
         
         ' Set the datatype filter.  Like the item name filter this
         ' filter allows you to reduce the number of items returned
         ' in the ShowLeafs function call based on the data type of the
         ' item.  In this case we need to test the index of the DataTypeFilter
         ' combo box control since the user may not have selected anything
         ' yet in which case we will use the "Native" data type which tells
         ' the server to return all datatypes.
         If DataTypeFilter.ListIndex = -1 Then
             DataTypeSelected = 0
         Else
             DataTypeSelected = DataTypeFilter.ItemData(DataTypeFilter.ListIndex)
         End If
         OPCBrowserClassObj.SetDataTypeFilter DataTypeSelected
         
         ' Set the access type filter.  Like the item name filter this
         ' filter allows you to reduce the number of items returned
         ' in the ShowLeafs function call based on the read write access
         ' of the item.  In this case we need to test the index of the
         ' AccessFilter combo box control since the user may not have
         ' selected anything yet in which case we will use the
         ' access type of "0" which tells the server to return all
         ' items regardless of access type.
         If AccessFilter.ListIndex = -1 Then
             AccessSelected = 0
         Else
             AccessSelected = AccessFilter.ItemData(AccessFilter.ListIndex)
         End If
         OPCBrowserClassObj.SetAccessFilter AccessSelected
         
         ' Finally show the new items based on the filters set above.
         OPCBrowserClassObj.ShowLeafs
         ' Add the new item if anny to the listview control.
         For i = 1 To OPCBrowserClassObj.GetItemCount
             OPCBrowserClassObj.GetItemName ItemName, i
             lvItemView.ListItems.Add , "Item" + Str(i), ItemName
         Next i
    End If
        
End Sub

' When the branch of the treeview control is collapsed we must remove
' all the childreen under that branch and replace them with a single
' dummy node to allow the branch to be reexpanded if the user desires.
Private Sub tvBranchView_Collapse(ByVal Node As Node)
    If Node.Children > 0 Then
        RemoveChildren Node, True
    End If
    DummyNodeNum = DummyNodeNum + 1
    ' Add the dummy node back into the treeview control under the parent
    ' node that has just been collapsed.
    tvBranchView.Nodes.Add Node.Key, tvwChild, "KEPwareDummyNode" + Str(DummyNodeNum), ""
End Sub

' The RemoveChildren function removes all of the nodes/branches under a
' supplied parent node.  This function is used recusively to remove
' other node below each branch.  The Root paramter is set to true
' by the main caller to signify that the top most node is not to be
' deleted.  Once this function is called recursively the Root flag is
' set false allowing the parent of each subsequent level to be deleted
' as the children are removed.
Function RemoveChildren(ByVal Node As Node, ByVal Root As Boolean)
    Dim i As Integer
    Dim nodecnt As Integer
    Dim test As String
    
    test = Node.Key
    nodecnt = Node.Children
    If nodecnt > 0 Then
        For i = 1 To nodecnt
            test = Node.Child.Key
            RemoveChildren Node.Child, False
        Next i
        
        If Not Root Then
            tvBranchView.Nodes.Remove Node.Key
        End If
    Else
        tvBranchView.Nodes.Remove Node.Key
    End If
End Function

' Once a list of tags is dislpayed in the ListView control they can be loaded
' into the ItemID text control by double clicking on the tag name.
' Once in the ItemID control you can add to the tag to the current group
' by clicking the Add button on the form.  This does not close
' the dialog however allowing you to continue to add more tags as needed.
'
Private Sub lvItemView_DblClick()
    ItemID.Text = OPCBrowserClassObj.GetItemID(lvItemView.SelectedItem.Text)
End Sub

' The follwing function deal with the manipulation of the three
' methods of filter the the items names(tags) available from the server
' for a given branch.

' The DataTypeFilter allows you to reduce the number of tags displayed
' based on the data type.  The other two fitler mehtods must also be applied
' here before the ShowLeafs function is called to reload the tags
' in the lsitview control.  This operation occurs everytime you change the
' the data type filter on the dialog.
'
Private Sub DataTypeFilter_Click()
    Dim i As Integer
    Dim ItemName As String
    Dim DataTypeSelected As Integer
    Dim AccessSelected As Long
    
    ' Remove all of the current items from the lsit view.
    lvItemView.ListItems.Clear
    
    ' Set the Item name filter using the string found in the
    ' ItemNameFilter cotnrol.  By default this is "*" which
    ' most server take to mean everything.  You can use
    ' other wildcards such as ? in addition to *.  Using these
    ' Wildcard you can do some fairly fancy filtering. An example
    ' might be "Pressure_???_T*"  In this case and items with the
    ' the name "Pressure_" then three fields of anything then
    ' "_T" anything would be return when we call ShowLeafs.
    '
    OPCBrowserClassObj.SetFilter ItemNameFilter.Text
    
    ' Set the datatype filter.  Like the item name filter this
    ' filter allows you to reduce the number of items returned
    ' in the ShowLeafs function call based on the data type of the
    ' item.  In this case we need to test the index of the DataTypeFilter
    ' combo box control since the user may not have selected anything
    ' yet in which case we will use the "Native" data type which tells
    ' the server to return all datatypes.
    If DataTypeFilter.ListIndex = -1 Then
        DataTypeSelected = 0
    Else
        DataTypeSelected = DataTypeFilter.ItemData(DataTypeFilter.ListIndex)
    End If
    OPCBrowserClassObj.SetDataTypeFilter DataTypeSelected
    
    ' Set the access type filter.  Like the item name filter this
    ' filter allows you to reduce the number of items returned
    ' in the ShowLeafs function call based on the read write access
    ' of the item.  In this case we need to test the index of the
    ' AccessFilter combo box control since the user may not have
    ' selected anything yet in which case we will use the
    ' access type of "0" which tells the server to return all
    ' items regardless of access type.
    If AccessFilter.ListIndex = -1 Then
        AccessSelected = 0
    Else
        AccessSelected = AccessFilter.ItemData(AccessFilter.ListIndex)
    End If
    OPCBrowserClassObj.SetAccessFilter AccessSelected
    
    ' Finally show the new items based on the filters set above.
    OPCBrowserClassObj.ShowLeafs
    ' Add the new item if anny to the listview control.
    For i = 1 To OPCBrowserClassObj.GetItemCount
        OPCBrowserClassObj.GetItemName ItemName, i
        lvItemView.ListItems.Add , "Item" + Str(i), ItemName
    Next i
End Sub

' The ItemNameFilter_Change allows you to reduce the number of tags displayed
' based on the name of the item.  The other two fitler mehtods must also be applied
' here before the ShowLeafs function is called to reload the tags
' in the lsitview control.  This operation occurs everytime you change the
' the item name filter on the dialog.
'
Private Sub ItemNameFilter_Change()
    Dim i As Integer
    Dim ItemName As String
    Dim DataTypeSelected As Integer
    Dim AccessSelected As Long
    
    ' Remove all of the current items from the lsit view.
    lvItemView.ListItems.Clear
    
    ' Set the Item name filter using the string found in the
    ' ItemNameFilter cotnrol.  By default this is "*" which
    ' most server take to mean everything.  You can use
    ' other wildcards such as ? in addition to *.  Using these
    ' Wildcard you can do some fairly fancy filtering. An example
    ' might be "Pressure_???_T*"  In this case and items with the
    ' the name "Pressure_" then three fields of anything then
    ' "_T" anything would be return when we call ShowLeafs.
    '
    OPCBrowserClassObj.SetFilter ItemNameFilter.Text
    
    ' Set the datatype filter.  Like the item name filter this
    ' filter allows you to reduce the number of items returned
    ' in the ShowLeafs function call based on the data type of the
    ' item.  In this case we need to test the index of the DataTypeFilter
    ' combo box control since the user may not have selected anything
    ' yet in which case we will use the "Native" data type which tells
    ' the server to return all datatypes.
    If DataTypeFilter.ListIndex = -1 Then
        DataTypeSelected = 0
    Else
        DataTypeSelected = DataTypeFilter.ItemData(DataTypeFilter.ListIndex)
    End If
    OPCBrowserClassObj.SetDataTypeFilter DataTypeSelected
    
    ' Set the access type filter.  Like the item name filter this
    ' filter allows you to reduce the number of items returned
    ' in the ShowLeafs function call based on the read write access
    ' of the item.  In this case we need to test the index of the
    ' AccessFilter combo box control since the user may not have
    ' selected anything yet in which case we will use the
    ' access type of "0" which tells the server to return all
    ' items regardless of access type.
    If AccessFilter.ListIndex = -1 Then
        AccessSelected = 0
    Else
        AccessSelected = AccessFilter.ItemData(AccessFilter.ListIndex)
    End If
    OPCBrowserClassObj.SetAccessFilter AccessSelected
    
    ' Finally show the new items based on the filters set above.
    OPCBrowserClassObj.ShowLeafs
    ' Add the new items if any to the listview control.
    For i = 1 To OPCBrowserClassObj.GetItemCount
        OPCBrowserClassObj.GetItemName ItemName, i
        lvItemView.ListItems.Add , "Item" + Str(i), ItemName
    Next i
End Sub


Private Sub AccessFilter_Click()
    Dim i As Integer
    Dim ItemName As String
    Dim DataTypeSelected As Integer
    Dim AccessSelected As Long
    
    lvItemView.ListItems.Clear
    
    ' Set the Item name filter using the string found in the
    ' ItemNameFilter cotnrol.  By default this is "*" which
    ' most server take to mean everything.  You can use
    ' other wildcards such as ? in addition to *.  Using these
    ' Wildcard you can do some fairly fancy filtering. An example
    ' might be "Pressure_???_T*"  In this case and items with the
    ' the name "Pressure_" then three fields of anything then
    ' "_T" anything would be return when we call ShowLeafs.
    '
    OPCBrowserClassObj.SetFilter ItemNameFilter.Text
    
    ' Set the datatype filter.  Like the item name filter this
    ' filter allows you to reduce the number of items returned
    ' in the ShowLeafs function call based on the data type of the
    ' item.  In this case we need to test the index of the DataTypeFilter
    ' combo box control since the user may not have selected anything
    ' yet in which case we will use the "Native" data type which tells
    ' the server to return all datatypes.
    If DataTypeFilter.ListIndex = -1 Then
        DataTypeSelected = 0
    Else
        DataTypeSelected = DataTypeFilter.ItemData(DataTypeFilter.ListIndex)
    End If
    OPCBrowserClassObj.SetDataTypeFilter DataTypeSelected
    
    ' Set the access type filter.  Like the item name filter this
    ' filter allows you to reduce the number of items returned
    ' in the ShowLeafs function call based on the read write access
    ' of the item.  In this case we need to test the index of the
    ' AccessFilter combo box control since the user may not have
    ' selected anything yet in which case we will use the
    ' access type of "0" which tells the server to return all
    ' items regardless of access type.
    If AccessFilter.ListIndex = -1 Then
        AccessSelected = 0
    Else
        AccessSelected = AccessFilter.ItemData(AccessFilter.ListIndex)
    End If
    OPCBrowserClassObj.SetAccessFilter AccessSelected
    
    ' Finally show the new items based on the filters set above.
    OPCBrowserClassObj.ShowLeafs
    ' Add the new items if any to the listview control.
    For i = 1 To OPCBrowserClassObj.GetItemCount
        OPCBrowserClassObj.GetItemName ItemName, i
        lvItemView.ListItems.Add , "Item" + Str(i), ItemName
    Next i

End Sub





?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产凹凸成av人网站| 欧洲一区二区三区在线| 欧美一区三区四区| 亚洲欧洲精品一区二区精品久久久| 日本麻豆一区二区三区视频| 欧美性视频一区二区三区| 国产精品国产自产拍在线| 国产91丝袜在线18| 久久久精品黄色| 国产在线国偷精品免费看| 91精品在线观看入口| 亚洲地区一二三色| 在线观看日韩毛片| 亚洲欧美偷拍卡通变态| 93久久精品日日躁夜夜躁欧美| 国产欧美一区二区精品忘忧草| 精品影视av免费| 久久午夜电影网| 国v精品久久久网| 亚洲天堂2014| 欧美这里有精品| 午夜亚洲国产au精品一区二区| 日本高清免费不卡视频| 亚洲欧美日韩在线播放| 91久久久免费一区二区| 亚洲第一福利一区| 日韩精品一区二区三区蜜臀| 国内精品免费在线观看| 久久精品男人天堂av| 北条麻妃国产九九精品视频| 亚洲免费av高清| 欧美精品在线视频| 国产真实精品久久二三区| 国产精品视频一二三区 | 亚洲男人电影天堂| 欧美色涩在线第一页| 麻豆专区一区二区三区四区五区| 欧美精品一区二区高清在线观看| 国产精一品亚洲二区在线视频| 国产精品国模大尺度视频| 欧美日本一区二区| 国产激情一区二区三区| 午夜电影网一区| 国产精品视频一二三区| 日韩一区二区在线免费观看| 国产**成人网毛片九色| 麻豆国产精品官网| 亚洲综合激情网| 欧美激情一区二区三区四区| 欧美中文一区二区三区| 国产不卡一区视频| 视频在线观看国产精品| 最新成人av在线| 欧美精品一区二区三| 欧美日韩亚洲另类| 99热在这里有精品免费| 国产一区二区三区在线看麻豆| 亚洲欧美区自拍先锋| 国产午夜精品一区二区三区视频| 欧美做爰猛烈大尺度电影无法无天| 九色综合狠狠综合久久| 亚洲va天堂va国产va久| 国产精品国产精品国产专区不片| 日韩欧美久久一区| 67194成人在线观看| 91福利国产精品| 成人性色生活片| 国产精品一区二区在线看| 青草av.久久免费一区| 亚洲综合激情网| 亚洲与欧洲av电影| 亚洲欧美另类图片小说| 亚洲同性gay激情无套| 国产精品沙发午睡系列990531| www国产精品av| 久久久天堂av| 日本一区二区动态图| 国产日韩av一区二区| 国产精品乱码久久久久久| 久久久久国产精品麻豆ai换脸 | 亚洲高清三级视频| 亚洲与欧洲av电影| 日韩精品每日更新| 精品一区二区三区在线播放视频 | 午夜免费欧美电影| 日本一道高清亚洲日美韩| 午夜精品福利视频网站| 日日摸夜夜添夜夜添亚洲女人| 日韩av不卡一区二区| 九九**精品视频免费播放| 国产一区二区0| 91视频xxxx| 日韩一区二区精品葵司在线| 2021中文字幕一区亚洲| 亚洲国产高清不卡| 怡红院av一区二区三区| 午夜成人免费电影| 高清不卡在线观看| 欧美日韩一区不卡| 久久精品视频网| 一个色在线综合| 国产麻豆视频精品| 色婷婷激情综合| 久久久久亚洲综合| 一区二区三区在线观看欧美| 麻豆久久久久久| 99久久国产免费看| 日韩免费看的电影| 一区二区三区中文字幕精品精品| 青青草原综合久久大伊人精品| 丁香五精品蜜臀久久久久99网站| 在线观看日产精品| 国产女人水真多18毛片18精品视频| 亚洲视频免费看| 国精产品一区一区三区mba视频 | 国产在线观看免费一区| 欧美三日本三级三级在线播放| 久久午夜免费电影| 日本视频一区二区| 欧美日韩国产免费一区二区| 久久亚洲精品小早川怜子| 舔着乳尖日韩一区| 91福利精品视频| **欧美大码日韩| 国产99久久精品| 久久久久久久电影| 精品午夜一区二区三区在线观看| 欧美日韩专区在线| 夜夜揉揉日日人人青青一国产精品| 国产成+人+日韩+欧美+亚洲| 精品免费一区二区三区| 六月丁香综合在线视频| 欧美久久久久中文字幕| 亚洲午夜精品17c| 在线观看一区二区视频| 亚洲综合小说图片| 欧美日韩一区二区在线视频| 亚洲专区一二三| 欧美日韩精品一区二区天天拍小说 | 日韩欧美一区中文| 乱一区二区av| 2023国产一二三区日本精品2022| 免费av网站大全久久| 欧美mv日韩mv国产网站| 国产一区二区精品久久| 欧美国产一区二区在线观看| 成人福利视频在线| 亚洲一区二区三区四区在线免费观看| 精品污污网站免费看| 久久国产婷婷国产香蕉| 欧美极品少妇xxxxⅹ高跟鞋 | 国产专区欧美精品| 中文字幕不卡在线| 欧美日本在线观看| 国产精品99久久久久久似苏梦涵| 亚洲色图视频网站| 欧美日韩国产精品成人| 国产乱理伦片在线观看夜一区| 成人欧美一区二区三区白人| 欧美在线综合视频| 国产一区二区精品在线观看| 日韩久久一区二区| 7777精品伊人久久久大香线蕉最新版 | 亚洲欧美中日韩| 91精品国产麻豆国产自产在线 | 日本伊人午夜精品| 国产精品黄色在线观看| 宅男在线国产精品| 99久久精品国产毛片| 日韩黄色在线观看| 亚洲免费观看高清完整| 久久综合999| 欧美一级日韩一级| 欧美日精品一区视频| 成人亚洲一区二区一| 国内精品视频666| 亚洲成人动漫av| 亚洲码国产岛国毛片在线| xvideos.蜜桃一区二区| 91精品国产一区二区三区蜜臀 | 成人综合在线观看| 久久精品久久99精品久久| 亚洲成人777| 亚洲精品老司机| 日韩理论片在线| 国产精品乱人伦| 日本一区二区动态图| 久久九九久精品国产免费直播| 欧美白人最猛性xxxxx69交| 欧美日韩一区二区三区在线看| 99这里都是精品| 91在线观看高清| 99国产精品久久久久| a美女胸又www黄视频久久| 不卡一区二区中文字幕| 99久久99久久精品国产片果冻| 波多野结衣中文一区| 9人人澡人人爽人人精品| 99久久99久久综合| 欧美日韩国产精选|