Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Type mismatch error
#1
Not Solved
Hi,
I am trying to retrieve the data from the excel sheet.Iam using the below code
Code:
sPrevalencePopularity=datatable.Value("PrevalencePopularity",oSheetName)

Here prevalencepopularity is the column in the datasheet.
when i run the script, its giving type mismatch error
prevalence
i think its only identifying prevalence.

any help will be really appreciated.
Regards;
vijay
Reply
#2
Not Solved
keep sheetname also in quotes.
i.e.,
Code:
sPrevalencePopularity=datatable("PrevalencePopularity", "oSheetName")
dont forget to set the row before using this statement.
The code will be
Code:
Datatable.setcurrentrow(1)
sPrevalencePopularity=datatable("PrevalencePopularity", "oSheetName")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Is there a way to create dynamic objects by declaring the type of object as parameter lotos 3 1,959 11-08-2017, 11:15 PM
Last Post: lotos
Sad QTP Script | how to get object of some open window just using its class type,Java sophia.sabir 1 8,669 08-07-2013, 01:26 PM
Last Post: anil2u
  impossible to pass a parameter of type 64 bytes in a webservices dosreis 0 2,008 06-21-2013, 01:55 AM
Last Post: dosreis
  How to find the Browser type at runtime? Rahull 1 2,988 09-14-2012, 09:22 PM
Last Post: SteveS
  type mis match vishnu 2 4,172 01-14-2012, 12:12 PM
Last Post: vishnu

Forum Jump:


Users browsing this thread: 1 Guest(s)