20 Aug 2017 
Support Center » Knowledgebase » GetSubItem Function
 GetSubItem Function
Article For Getting values from a list view we can use the function “GetSubItem”

Syntax is

Var = Window().WinlistView().GetSubItem (Row, “Column Name”)

Below code retrieves shop stock of first row of Enquiry interface.

VbWindow("frmMain_2").ActiveX("Toolbar").VbToolbar("tbrPos").Press "Enquiry"
VbWindow("frmMain_2").VbWindow("frmInquiry").ActiveX("SSTab").VbEdit("txtBarcode").Set "100021"
VbWindow("frmMain_2").VbWindow("frmInquiry").ActiveX("SSTab").VbEdit("txtBarcode").Type micreturn
dim i
i=VbWindow("frmMain_2").VbWindow("frmInquiry").ActiveX("SSTab").VbListView("lvwPrice").GetSubItem(0,"Shop Stock")
Here 0 is Rownumber
Shop Stock is column name.


Article Details
Article ID: 54
Created On: 23 Jul 2014 10:35 AM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
E-mail:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Knowledgebase | Troubleshooter | News | Downloads
Language:

Help Desk Software by Kayako SupportSuite v3.40.01