How will you trim the spaces on the left of a string using vbscript?
Answer / allamraju.sai.kumar@gmail.com
we use LTrim function to remove the spaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30
about vb scripting programs this type of all question& answers
how to operate webobjects in a webpage using getobject function and then using generic methods?
Difference between dim,public and private variables in vb script?
What is parametrization ?
what types of bugs will we find out in banking projects for automation testing?
0 Answers Napier Healthcare, TCS,
How many types of procedures are available in the vbscript language?
Mention the environments where vbscript could be run?
Why is it recommended to close the database connection every time after the work is completed?
What is difference between vbscript and vba?
what is resorceallocation
write a vb script to open a text file and write into it