Sign in to follow this  
Followers 0
GaryFrost

Possible addition (ListView Item count)

1 post in this topic

#1 ·  Posted (edited)

;===============================================================================
;
; Function Name:    _GUICtrlGetListViewColsCount()
; Description:    Return the number of columns for a listview
;                  
; Parameter(s):  $lv            - ListView control
;                  $title         - Windows title
;                  $text         - Window text
;                  
; Requirement(s):   None
; Return Value(s):  Number of columns
;                  
; Author(s):        Gary Frost
;
;===============================================================================
Func _GUICtrlGetListViewColsCount(ByRef $lv,$title="",$text="")
    If(StringLen($title)==0) Then
        $title = WinGetTitle("")
    EndIf
    Return ControlListView($title ,$text, $lv, "GetSubItemCount")
EndFunc

;===============================================================================
;
; Function Name:    _GUICtrlGetListViewItemsCount()
; Description:    Return the number of columns for a listview
;                  
; Parameter(s):  $lv            - ListView control
;                  $title         - Windows title
;                  $text         - Window text
;                  
; Requirement(s):   None
; Return Value(s):  Number rows
;                  
; Author(s):        Gary Frost
;
;===============================================================================
Func _GUICtrlGetListViewItemsCount(ByRef $lv,$title="",$text="")
    If(StringLen($title)==0) Then
        $title = WinGetTitle("")
    EndIf
    Return ControlListView($title ,$text, $lv, "GetItemCount")
EndFunc

Edited by GaryFrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0