sunday is sunday
monday
tuesday
wendesday
sunday
thursday
friday
saturday
sunday
sunday
how to count no of sunday in the text file from vb? Answer
me asap
Answers were Sorted based on User's Feedback
Answer / siva
text="sunday is sunday monday tuesday wendesday sunday
thursday friday saturday sunday sunday how to count no of
sunday"
coun=ubound(split(text,"sunday"))
msgbox coun
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / siva
Set fso=createobject("scripting.filesystemobject")
Set forread=fso.OpenTextFile("path\test.txt",1)
text=forread.ReadAll
coun=ubound(split(text,"sunday"))
msgbox coun
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / eswar
cnt =0
Set fso = CreateObject("scripting.filesystemobject")
Set f = fso.opentextfile("D:\test.txt",1)
While f.atendofstream<>true
x = f.readline
y = Split(x," ")
For i=0 to ubound(y)
If y(i) = "sunday" Then
cnt=cnt+1
End If
Next
Wend
MsgBox cnt
| Is This Answer Correct ? | 0 Yes | 0 No |
In our application qtp unable to indentify the menu items,we tried number of times to add objetcs into object repository but fail. through normal recording mode only objects going to add into repository but while running same recording script qtp showing a error like " unable to indentify the object". in repository there is no any properties and pro values for that object and also i tried with virtual object config also unable to find the object in application and in repository. Then what i have to do to identify menu objects????? can anybody hell me pls..............
Differentiate javascript and vbscript?
a;;b;c;;;d in this string output is abcd will come how can we do that in vbscript in QTP testing?
How to copy from one script to another script in qtp
Difference between Do while loop and while wend loop
How do you create a recordset object in VBScript?
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
Which in-built function is used to format the number in the vbscript language?
which one is more secure vb script or java script ??????? or both are same ??????
pls tell me which is good book or site for vbscript?
Am working with web application. i faced one senario. i.e, webpage having webtable having two coloumns, in that first coloumn is for serial no and second coloumn is for mac address link, now i want to get first row second coloumn value, that having macaddress as link. Please help me how to get that link?
how to write validation function for date in vb script