What is InStr()

Answers were Sorted based on User's Feedback



What is InStr()..

Answer / chn

Mr chandrashekar .......... if u want to give the brief
explanation abt any Question...... Write here itself .....
No need to provide ur contact details .........

It's very bad part of it ........


Chn

Is This Answer Correct ?    14 Yes 3 No

What is InStr()..

Answer / krishnachand

This is a String Function which uis used to identify where
the position of one string or letter in the other string
which occurs for the first time.
For Eg:
First String str1=: A sentence does not end with because
beacause because is a conjuction.
Second and identified string str2=: because
if we given like a=Instr(str1,str2,1)
it is gives a as 7

Is This Answer Correct ?    10 Yes 9 No

What is InStr()..

Answer / kalyan

Here I am Providing the right answer. If U want to find the
first occurance of substring with in string then u can use
the instr function.

any doubts mail to

mskalyan.smile@gmail.com

Is This Answer Correct ?    5 Yes 4 No

What is InStr()..

Answer / mr. buntha khin

Sample code to use InStr() in VB.Net

Friend Function DecimolNumbers(ByVal KeyChar As Char, ByVal
TxtBox As TextBox) As Boolean

Select Case KeyChar.ToString

Case Keys.Delete.ToString
Return False
Exit Function
Case Keys.Left.ToString
Return False
Exit Function
Case Keys.Right.ToString
Return False
Exit Function
Case Keys.Tab.ToString
Return False
Exit Function
Case vbBack
Return False
Exit Function
Case Keys.Enter.ToString
Return False
Exit Function
Case Keys.Home.ToString
Return False
Exit Function
Case Keys.End.ToString
Return False
Exit Function
Case Keys.Escape.ToString

End Select

If (KeyChar.ToString = "." And InStr
(TxtBox.Text, ".") > 0) Then
Return True
Exit Function
End If

If KeyChar.ToString = "." Then Return False

If IsNumeric(KeyChar) = True Then
Return False
Else
Return True
End If

End Function

Is This Answer Correct ?    1 Yes 1 No

What is InStr()..

Answer / nanda

I Agree with Krishnachand.

Is This Answer Correct ?    0 Yes 5 No

What is InStr()..

Answer / k.chandra sekhar

a) When the use the two are more string then use instr ()
b) Ex: - This like instr (str1, str2, ?)


My name is k.chandra sekhar,
My phone no is 09246540049,
Hyderabad.
My mail id is ndra_143@yahoo.co.in
If any body want full explain send the mail

Is This Answer Correct ?    2 Yes 14 No

Post New Answer

More QTP Interview Questions

Hi..All I have installed QTP 10.0, and need to Automate SAP Application.....so i need to Install SAP Add-ins, anybady has SAP-Addins, Please help me, and thanks in advanced plese send it on my email id: sandipgami84@gmail.com Thanks, Sandip Gami +91-9714177088

1 Answers  


After the execution of a script how do u upload the results to Quality Center. Pls anyone explain in detail. It is very urgent._______Thanks a lot!!

2 Answers   ABC,


what is a active x control?can any one brief me about active x controls

1 Answers  


What are the disadvantages of recording test cases in qtp?

0 Answers  


QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop "

2 Answers   Livetek,






hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri

7 Answers  


how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

0 Answers  


what is selective recording ? and normal recording?

1 Answers   iSoft,


Mention the test steps of qtp.

0 Answers  


How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.

2 Answers  


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

0 Answers   TCS,


What is the concept of hooking in QTP?

1 Answers  


Categories