VB Script Interview Questions
Questions Answers Views Company eMail

where can i learn VB scripint ?

Satyam,

821

how to genarate a random numbers in vb?

2 3095

write a program to display the system specifications of client system with the help of vb script.

1 2086




write a program to display configuration of a local system with the help of vb script.

953

explain with example primitive data types of vb script.

1 4750

how does vb script help in web page designing? explain with example.

883

what is the features of visual basic?

775

how to find greatest of n numbers!

Syscon,

3 11912




1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

796

How to replace junk code recorded by QTP with a mall function.

833

which is the best institute in banglaore for software testing?

1 1828

which is the good software training centre in bangalore?

1 1880

which is the bset training centre to learn automation tools?

2 1886

best training centre in bangalore

2 3017

How to remove the spaces in a string Ex: "this is apple"

Cap Gemini,

5 11796


Post New VB Script Questions






Un-Answered Questions { VB Script }

what types of bugs will we find out in banking projects for automation testing?

1062


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

249


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

1398


i have a problem with this error(this error related edit and delete button,when i click this button in datagrid..i will get this error)"Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." this is my code : <%@ Page Language="VB" Debug="false" %> <%@ import Namespace="Sytem.Data" %> <%@ import Namespace="System.Data.OleDB" %>

(Search Based On Staff I.C No) IC.No (XXXXXX-XX-XXXX)   ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> Total Leave Taken : Days

1654


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1027






We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

1020


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

758


where can i learn VB scripint ?

821


what is diff between static and dynaic arrys?

821


Write a Script for ATM in QTP

2567


How to add actions in driver script to run those actions in QTP?

815


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

703


VISUAL BASIC QUESTIONS Does VB/Win make standalone .EXE files? What is the current version of Visual Basic for Windows? [++] Where can I get updated VB and other Microsoft files? Where can I get good up-to-date information about VB? [++] Are there any examples of commercial applications built using Visual Basic? What's the difference between MODAL and MODELESS forms? [++] When/Why should I use Option Explicit? Why does everybody say I should save in TEXT not BINARY? Is the Variant type slower than using other variable types? How do I make a text box not beep but do something else when I hit the Enter key? How do I implement an incremental search in list/dir/combo/file boxes? How do I get the Tab key to be treated like a normal character? How do I make an animated icon for my program? What is passing by reference? I get a "file not found" error on the IIF function when I distribute by program. Why? Is there any way to pass a variable to a form apart from using global variables? How should dates be implemented so they work with other language and country formats? Can a VB application be an OLE server? How do I dial a phone number without using the MSCOMM VBX? I have [several] megabytes of memory. Why do I get an "out of memory" error? [++] How do I mimic a toggle button? [++] How do I get my application on top? Is there a way to break long lines in VB code? How do I remove/change the picture property of a control at design time? Is a [foo] VBX/DLL available as shareware/freeware? How do I make my applications screen-resolution independent? How do I do Peek and Poke and other low-level stuff? [++] Why doesn't "my string" & Chr$(13) do what I want? How do I prevent multiple instances of my program? How do I implement an accelerator key for a text box? How do I force a file dialogue box to reread the currect disk? How do I get the number of free bytes on a disk? [++] Data Control missing from toolbox when I use VB under NT 3.5. Why? How do I tell when an application executed using the SHELL command is finished? How do I access C style strings? How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation? How do I speed up control property access? How much gain in performance will I get if I write my number crunching routines in C instead of Visual Basic? How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX? How can I create a VBX? How do you change the system menu (on the Control-Menu Box)? How do I play MID, WAV or other multimedia files? How can I call a 'hidden' DOS program from VB? How do I do drag & drop between applications? How do I use GetPrivateProfileString to read from INI files? How do I implement Undo? How do I create a window with a small title bar as in a floating toolbar? What is Pseudocode? Does VB support pointers to functions? How do I program the Novell NetWare API from VB? How do you change the icon and otherwise manipulate the DOS box? How do I make the mouse cursor invisible/visible? How do I create controls dynamically (at run-time)? How do I set the Windows wallpaper at runtime? How do I call help files from a VB program? [**] What is the Windows API? How do I call a DLL? What about DLL calls that require callbacks? Why can't I use an index with my VB accessed database? Is the Access Engine and Visual Basic Pro good enough for database work? How do you avoid the "Invalid use of null" error when reading null values from a database? What is "NULL"? How can I access a record by record number? How about Access 2.0 compatibility? How come I get a "No Current Record" error when I use a a Data Control on an empty table? How can I speed up my VB database application? How do I get a bitmap picture in a field in an Access database? What is "Reserved Error -1209"? I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why? Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table? Visual Basic Questions 1. Which controls can not be placed in MDI ? 2. List out controls which does not have events 3. Which property of textbox cannot be changed at runtime. What is the max size of textbox? 4. How many system controls are available 5. ___,_____ and ____ container objects. 6. ___ Property is to compress a image in image control. 7. ___,___ and __ are difference between image and picture controls. 8. To.set the command button for ESC ___ Property has to be changed. 9. Is it possible to set a shortcut key for label. 10. What is the default property of datacontrol. 11. ___,__,___ are the type of combo box? 12. __ no of controls in form. 13. OLE is used for _______ 14. What is the need of tabindex property is label control. 15. ___ is the control used to call a windows application. 16. Clear property is available in ____,___ control. 17. ___ Property is used to count no. of items in a combobox. 18. ___ is a property to resize a label control according to your caption. 19. Which controls have refresh method. 20. ___ property is used to change to ___ value to access a identity column'in datacontrols. 21. _____ is the property to ___,____,____ are valid for recordsource property of dat control. 22. To find the current recordposition in data control. 23. Timer control contains ________ no. of events. 24. ____ property is used to lock a textbox to enter a datas. 25. What is the need of zorder method? 26. ____ is the difference between Listindex and Tab index. 27. ____ property of menu cannot be set at run time. 28. Can you create a tabletype of recordset in Jet - connected ODBC dbengine. 29. Difference between listbox and combo box. 30. What are the new events in textbox that has been included in VB6.0 31. Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample. 32. _____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol. 33. ___ argument can be used to make a menuitem into bold. 34. What is the difference between Msgbox Statement and MsgboxQ function? 35. What is.the difference between queryunload and unload in form? 36. ___,___ arguments will be used to run a executable program in shell function 37. ___ property used to add a menus at runtime. 38. What is the difference between modal and moduless window? 39. ___ VB constant make the menu item in centre. 40. ___ method used to move a recordset pointer in nth position in DAG. 41. To validate a range of values for a property whenever the property values changes,which type of property procedure you use? 42. What are 3 main differences between flexgrid control and dbgrid control? 43. What is the difference between change event in normal combobox and dbcombobox? 44. To populate a single column value which dbcontrols you to use? 45. What is ODBC? 46. PartsofODBC? 47. WhatisDSN? 48. WhatisDAO? 49. Types of cursors in DAO? 50. Types of LockEdits in DAO? 51 .Types of Recordsets. 51. Difference between Tabletype and Snapshot? 52. Draw Sequence Modal of DAO? Explain. 53. Difference between Dynaset and Snapshot? 54. Difference between Recordset and Querydef? 55. What is the use of Tabledef? 56. Default cursor Type and LockEdit type in DAO? 57. What is the default workspace? 58. Is it posible to Create Tables Through Querydef? 59. It is possible to access Text (x.txt) files? Explain. 60. What is ODBC Direct and Microsoft Jet Database Engine ? 61. Is it possible to Manipulate data through flexgrid? Explain. 62. Types of DBCombo boxes 63. What do you mean by Databound Controls? Explain. 64. What is RDO? 65. Types of cursors in RDO. 66. Types of LockEdits in RDO. 67. Types of LockEdits in RDO. 68. Types of Resultsets. 69. Difference between Recordset and Resultsets. 70. Explain Default cursor Type and LockEdits type in RDO 71. Draw Sequence Modal of RDO? Explain. 72. What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain. 73. What is OLE? Explain. 74. What is DDE? 75. Difference between Linked Object and Embedded Object? 76. Explain OLE Drag and Drop. 77. Difference between DDE and OLE. 78. What is the difference between Object and Class? 79. Give brief description about class? 80. Does VB Supports OOPS Concepts? Explain.. 81. Difference between Class Module and Standard Module? 82. Explain Get, Let, Set Properties. 83. Difference Types of Procedures in VB? 84. What is the use of NEW Keyword? Explain. 85. What is constructors and distructors. 86. Types of Modal windows in VB. 87. What is ActiveX? Explain. 88. Types of ActiveX Components in VB? 89. Difference between ActiveX Control and Standard Control. 90. Difference between ActiveX Exe and Dll. 91. What is instantiating? 92. Advantage of ActiveX Dll over Active Exe. 93. Difference Types of Instancing Property in ActiveX Dll and Exe. 94. What is ActiveX Dll and ActiveX Exe? 95. Write the steps in Creating ActiveX Dll and Active Exe? 96. Explain the differences between ActiveX Dll and ActiveX Exe? 97. How would you use ActiveX Dll and ActiveX Exe in your application? 98. How would you access objects created in ActiveX Exe and ActiveX D1T 99. What is the use of ActiveX Documents? 100. What is ActiveX Document? 101. What is the use of Visual Basic Document file? 102. What is hyperlink? 103. How would you create Visual basic Document file? 104. What is Internet Explorer and its uses? 105. How would you navigate between one document to another document 106. in Internet Explorer ? 107. How would you run your ActiveX Document Dll? 108. How would you view html code in Active Server Pages? 109. How would you cre.ate your application in DHTML? 110. What is ActiveX Control? 111. Write the Steps in Creating an ActiveX Control? 112. How would you attach an ActiveX control in Your Application? 113. How would you create properties in ActiveX Control? 114. What is the-use of property page Wizard in ActiveX Control? 115. How would you add elements in TreevieW Control. 116. What are the types of line styles available in Treeview Control? 117. What is the use of Imagelist Controls 118. How would you attach pictures in Treeview Control? 119. What are the uses of List View Control? 120. Explain the types of Views in Listview Control. 121. How would you attach pictures in column headers of List View Control? 122. How would you add column headers in listview control? 123. How would you add elements and pictures to listitems in listview control? 124. How would you activate animation control? 125. What is the use of progress Bar Control? 126. How would you find out the value property in Slider Bar Control? 127. What is the use of Data Form Wizard? 128. How would you map properties to controls by using ActiveX Control Interface Wizard? 129. How would you convert a form into document? 130. How would you Create a Query Builder and Explain its uses 131. How would you create properties by using class Builder Wizard? 132. HTML stands for What? Use of HTML ? 133. Whether HTML supports multimedia: and document links? 134. DHTML Is used for what? 135. What do you mean by HTTP? 136. What is the use of Hyperlink control for DHTML applications? 137. How can you Navigate from the DHTML application to another DHTML application? . 138. What are the Internet tools available in VB6.0? 139. Explain the usage of Web Browser Control? 140. What do you mean by ADO? 141. What is the difference Between ADO and other data access objects0 142. WhatisOLEDB? 143. What are the important components of OLEDB? 144. Through which protocol OLEDB components are interfaced? 145. It possible to call OLEDB's Features directly in VB without using any control? 146. What type of databases you can access through AD I Data Access Object? 147. How many objects resides in ADO ? 148. What is the use of Connection object? 149. What is the use of command Object? 150. Recordset object consists what? 151. What is the use of parameters collection? 152. Which type of object requires this object? 153. Is it possible to call backend procedures with ADO control? 154. Is there any Edit method in ADO Data Access method? 155. How can you check whether a record is valid record or Invalid record using ADO control or Object? 156. What do you mean by provider? 157. What type of recordsets are available in ADO? 158. Is it possible to call oracle database through ADO control or Object? 159. How many File System Controls are there ? Explain. 160. How can you filter out specific type of file using file system controls? 161. How can you get selected file from file system Control? 162. How many ways we can access file using VB? 163. Which method is preferred to save datas like database? 164. How to get freefile location in memory? 165. How to find size of the file. Which method or function is used to occomplish this? 166. Using which type we can access file line by line? 167. Which method is used to write context Into file? 168. How can you read content from file? 169. Binary Access-method isused to access file in which manner? 170. How can you check Beginning and End of the file? 171. What is the use of Scalewidth and ScaleHeight Proeperty? 172. What is the use of Active Control Property? 173. How can you save and Get data from Clipboard/ 174. What are the types of Error? 175. In which areas the Error occurs? 176. What are the tools available for Debuggiu in VB? 177. What is the use of Immediate, Local Window? 178. What is the use of debug Window? 179. How can you Implement windows functionality in VB? 180. How many types of API functions are availble in VB? 181. How can you Add API functions to your Application? 182. How to get Cursor position using API? 183. Is it possible to change menu runtime using API? If yes? Specify the function names. 184. What are the types of API Types.

1679


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

1155


Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.

1841