Using Join method, add all array value to one string as below.
Dim Mystring
Dim Myarray(2)
Myarray(0)="Mr."
Myarray(1)="Jhon"
Myarray(2)="Deo"
Mystring=join(Myarray)
msgbox Mystring

Custom Search
Sunday, January 9, 2011
Difference between Smoke and Sanity Testing?
Smoke Testing : - Smoke Testing done to ensure that whether the build can be accepted for further software testing or not. Basically, it is done to check the stability of the build received for software testing.
Sanity testing : - After receiving a build with minor changes in the code or functionality, check whether it rectified the bugs or issues and any other bugs is introduced by the changes. and also test some of the functionalities in depth to ensure that whether the requirements are met or not.
Sanity testing : - After receiving a build with minor changes in the code or functionality, check whether it rectified the bugs or issues and any other bugs is introduced by the changes. and also test some of the functionalities in depth to ensure that whether the requirements are met or not.
Sunday, January 2, 2011
Get the repeated character in one string
Function GetCharCount(strChar,strSearchIn)
dim intCounter
for intCounter = 1 to len(strSearchIn)
if Mid(strSearchIn,intCounter,1)=strChar then
GetCharCount=GetCharCount+1
end if
next
End Function
msgbox GetCharCount("s", "this is a string")
======Second method=========
str="this is a string"
msgbox Len(str)-Len(Replace(str,"s",""))
dim intCounter
for intCounter = 1 to len(strSearchIn)
if Mid(strSearchIn,intCounter,1)=strChar then
GetCharCount=GetCharCount+1
end if
next
End Function
msgbox GetCharCount("s", "this is a string")
======Second method=========
str="this is a string"
msgbox Len(str)-Len(Replace(str,"s",""))
Subscribe to:
Posts (Atom)