How to Import data from a file (file is on the desktop) to
the data table

Answers were Sorted based on User's Feedback



How to Import data from a file (file is on the desktop) to the data table..

Answer / sojan davis

We can use Datatable.import and Datatable.importsheet method

Is This Answer Correct ?    2 Yes 0 No

How to Import data from a file (file is on the desktop) to the data table..

Answer / mythreyi

We can import a file in two ways.

1) In Qtp window -> Go to data table -> Right click on data table select File -> import file

2) In keyword view, write datatable.import "path of the file"

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More VB Script Interview Questions

Create a file system object to do the following i. Create a folder ii. Create a text file in the folder iii. Update text file with some tex

2 Answers  


What is the use of the recordset object and which statement is used to create such an object?

0 Answers  


What is vbscript?

0 Answers  


Is vbscript language a case-sensitive language and what does it mean?

0 Answers  


What is difference between vbscript and vba?

0 Answers  






how to set one column as primary key in QTP and fetch values accordingly

0 Answers   Ford,


which one is more secure vb script or java script ??????? or both are same ??????

3 Answers  


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<<The data retrieved from data base >>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

0 Answers  


What is the output of a + b in vbscript if a = 5 and b = 10?

0 Answers  


Which loop is used in case of arrays in the vbscript language?

0 Answers  


Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....

1 Answers  


Which operator is used to concatenate the 2 values in the vbscript language?

0 Answers  


Categories