Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how many times does same line of text appear in List?
#1
Hi Gintaras,

Searched to no avail, I have a program that can have multiple instances of the same window name open at one time.
Need to figure out how many instances of each window is open.

I'm stuck!  Any thoughts on reliable way to accomplish are appreciated.
Thanks in advance.

Code so far, below.

Scott
_____________

Function OpenWindows___NumOfTimes
Code:
Copy      Help
int counter    ;; = number of windows in list
str names    ;; = list of window names

WindowList___Hidden(counter names) ;; <---- Modified GetWindowList function to include Hidden windows and a counter.


ARRAY(str) a
a = (names)
int i
for(i 0 a.len) out "%i %s" i a[i]
out "[][]____ The List of Windows open ___--->  str s:[]"
s=a
out s    ;;  --> The List of open windows.  converted array to use as reference against str names.

;; now trying to see,  how many instances of each window is open?
;; having trouble here.


Messages In This Thread
how many times does same line of text appear in List? - by ScottF - 10-09-2020, 08:33 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)