Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot retrieve Native property
#1
Solved: 5 Years, 4 Months, 3 Weeks ago
Hi,

WpfObject. Using Spy the only valid option for object identification I see seem to be 
Native Property
Header {Value Defined}

To get this value i use this code:

Set oDesc=Description.Create()
oDesc("classname").Value="DevComponents\.WpfDock\.DockWindow" 
Set linkCollection=WpfWindow("WindowName").WpfObject("devname:=DockWindowGroup").ChildObjects(oDesc) 
For i=0 to linkCollection.Count-1
'  1)  nativePropertyVal = linkCollection(i).Object.Header 'Use the native property in place 
  
  set nativePropertyVal = linkCollection(i).Object
    nativePropertyVal.GetValue("Header")
   
    msgbox nativePropertyVal.GetValue("Header")

Next



However instead of getting value that spy show, I always get {null}.

Can you advise if any additional setup required to get Native property or am I doing something wrong?


Attached Files Image(s)
       
Reply
#2
Solved: 5 Years, 4 Months, 3 Weeks ago
Resolved by adding ToString when requesting native property
nativePropertyVal = tabCollection(i).Object.Header.ToString() 'Use the native property in place
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 986 09-11-2019, 02:52 PM
Last Post: siddharth1609
  What the Native property value in {} means? JeL 1 974 07-29-2019, 05:34 PM
Last Post: JeL
  To retrieve content of a WEBEDIT object alpha1 2 2,647 06-11-2015, 11:21 AM
Last Post: vinod123
  How to retrieve specied string from text file nsuresh316 1 2,495 06-09-2015, 12:24 AM
Last Post: nsuresh316
  Retrieve row number based on value in DataTable marfa 6 30,916 07-31-2014, 08:36 PM
Last Post: dharshinishankari@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)