Steps to Remove left blank spaces:
1. use LTrim() function to remove left white spaces.
2. Pass the given string into LTrim() function.
QTP Script to remove left white spaces:
<html>
<head>
<script type="text/vbscript">
QTPDemoStr=" QTP Left Trim Tutorial "
document.write("##" & LTrim(QTPDemoStr) & "##" & "<br>")
document.write("##" & QTPDemoStr & "##")
</script>
</head>
</html>
Output of Left Trim:
Where to Run This Program:
1. This VBScript Program code either you can use in QTP editor (code between <script> and </script> tags ) and run it.
2. Write in Notepad, save with .htm extension and run on internet explorer.
0 comments:
Post a Comment