Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Automate Datatable column name and sheetname in function
#1
Not Solved
Hello,

I am new here. I am working on a script with function library. I have created following function. 

Code:
'Function to Validate Login
Function fnChktext (Prop_Name,Prop_InnerText)
Dim Chktext
Set Chktext=Description.Create
Chktext("name").value=Prop_Name
Chktext("innertext").value=Prop_InnerText
If MyBrowser.Link(Chktext).Exist(2) Then
DataTable.Value("Results", "Global")="Test-Passed"
Else
DataTable.Value("Results", "Global")="Test-Failed"
End If
End Function


I want to reuse this function but I want user should enter ColumnName and Sheetname for DataTable to write values to DataTable. Instead of making it hard coded for column name and Sheetname. How Can I do this?
Reply


Messages In This Thread
How to Automate Datatable column name and sheetname in function - by syednaqvi - 06-06-2017, 01:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pass reference to datatable into function smallsteve 2 2,102 09-28-2017, 09:18 PM
Last Post: smallsteve
  Calling a Function in Function Library when function is defined in an Action jitenderkkr 0 2,987 11-27-2014, 12:53 PM
Last Post: jitenderkkr
  to count the number of used rows in a particular column sujaravi123 3 11,171 06-12-2013, 03:17 PM
Last Post: sujaravi123
  How to recognize table row and column siwani 4 5,075 04-05-2012, 05:06 PM
Last Post: verma.vik6
  Reading xls by column name anbarasu 2 3,239 04-05-2010, 12:26 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 2 Guest(s)