Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetListViewItemText Question
#1
Dear Gintaras,

I tried to use GetListViewItemText with a TListView window in a layered product.

Generally, it behaves well. However, with column other than 0 and flags=0, it reports the value corresponding to the item than is incidentally focused and not to that requested in GetListViewItemText call.
No problem when column=0.

I would appreciate it if you could kindly advise.

Kind regards
#2
Please post the code. It seems like flags is not 0. Works well here.

Macro Macro2430
Trigger F8     Help - how to add the trigger to the macro
Code:
Copy      Help
int w=win("Profile Setup: test - Search" "TfrmSetupMain")
int c=child("" "TListView" w) ;;list
GetListViewItemText c 0 _s 1
out _s
#3
Many thanks for dealing with it. I overcame the problem by making first a dummy call to column 0.

Function tempf07
Code:
Copy      Help
int hwnd=win(" - Main" "TForm1")
int vFileList=child("" "TListView" hwnd) ;;list
str vColEntry
int item=227
GetListViewItemText(vFileList item &vColEntry 0) ;; Dummy call
GetListViewItemText(vFileList item &vColEntry 3)

out F"{item} {vColEntry}"


Forum Jump:


Users browsing this thread: 1 Guest(s)