zoukankan      html  css  js  c++  java
  • vbRichClient5的Collection对象参考

    Collection对象
        简介:创建集合对象,该对象比VB自带的Collection和Scripting.Dictionary有更多的功能
        原型:Function Collection([CompatibleToVBCollection As Boolean = True], [StringCompareMode As StringCompareModeEnum = 1], [UniqueKeys As Boolean = True], [Content]) As cCollection

    方法
    Add()
    原型:Sub Add(Item, [Key], [Before], [After])

    Count()
    原型:Function Count() As Long

    Exists()
    原型:Function Exists(Key) As Boolean

    ItemExists()
    原型:Function ItemExists(ItemValue, [FoundItemIndex As Long], [StringCompareMode As VbCompareMethod]) As Boolean

    MakeLCID()
    原型:Function MakeLCID(LangID As LangIDs, [SortID As SortIDs = SORT_DEFAULT]) As Long

    Remove()
    原型:Sub Remove(Key)

    RemoveAll()
    原型:Sub RemoveAll()

    RemoveByIndex()
    原型:Sub RemoveByIndex(IdxZeroBased As Long)

    SerializeToJSONString()
    原型:Function SerializeToJSONString() As String

    SerializeToJSONUTF8()
    原型:Function SerializeToJSONUTF8() As Byte()

    SetStringCompareFlags()
    原型:Sub SetStringCompareFlags(Flags As CmpFlags, [lcid As LCIDs], [SortID As SortIDs = SORT_DEFAULT])

    SortKeysCount()
    原型:Function SortKeysCount() As Long

    属性

    CompatibleToVBCollection
    原型:Property CompatibleToVBCollection As Boolean

    Content
    原型:Property Content As Byte()

    IndexByKey
    原型:Property IndexByKey(Key, [Force_EvenIfNonExistent As Boolean]) As LongIndexBySortKeyIndex

    IndexBySortKeyIndex
    原型:Property IndexBySortKeyIndex(IdxZeroBased As Long) As Long

    IsJSONArray
    原型:Property IsJSONArray As Boolean

    IsJSONObject
    原型:Property IsJSONObject As Boolean

    Item
    原型:Property Item(Key)   缺省成员

    ItemByIndex
    原型:Property ItemByIndex(IdxZeroBased As Long)

    ItemBySortKeyIndex
    原型:Property ItemBySortKeyIndex(IdxZeroBased As Long)

    KeyByIndex
    原型:Property KeyByIndex(IdxZeroBased As Long)    只读

    KeyBySortKeyIndex
    原型:Property KeyBySortKeyIndex(IdxZeroBased As Long)  只读

    Prop
    原型:Property Prop(Key)

    SortKeyIndexByIndex
    原型:Property SortKeyIndexByIndex(IdxZeroBased As Long) As Long    只读

    SortKeyIndexByKey
    原型:Property SortKeyIndexByKey(Key, [Force_EvenIfNonExistent As Boolean]) As Long   只读

    StringCompareMode
    原型:Property StringCompareMode As StringCompareModeEnum

    UniqueKeys
    原型:Property UniqueKeys As Boolean

  • 相关阅读:
    跨域上传图片的尝试过程,最终成功了。哈哈
    老子再也不加什么所谓的技术群了,顶撞群主的话,就被踢了。
    开发使用的插件
    设计原则记录
    程序员修神之路--redis做分布式锁可能不那么简单
    程序员过关斩将--面试官再问你Http请求过程,怼回去!
    程序员修神之路--问世间异步为何物?
    程序员修神之路--提高网站的吞吐量
    程序员过关斩将--你的业务是可变的吗(福利你领了吗)
    程序员修神之路--🤠分布式高并发下Actor模型如此优秀🤠
  • 原文地址:https://www.cnblogs.com/Spacecup/p/3488604.html
Copyright © 2011-2022 走看看