Saturday, December 6, 2008

Write a Mathematical Table in Notepad through the VB Script

'To open notepad and write a mathematical table in that throug QTP and save in C Drive and close

Set obj=createobject("Scripting.filesystemobject")
Set of=obj.createtextfile("c:\mat.txt")
'set of=obj.opentextfile("c:\mat.txt")
For i=1 to 10
x=5*i
of.writeline"5 * "&i&" = "&x
Next

2 comments:

pandu said...

"Write a multiple Mathematical Tables in Notepad through the VB Script"

RAJAPUTRA said...

Pandu,

You can use, dynamically which table u want to write...
example...
tableNo= Inputbox "Enter math table you want "
use "tableNo" where ever 5 is in the above code.

About Me

My photo
Hi all,I am Arun Singh Rajaputra. I am working as a Project Lead in a reputed organization in Hyderabad, AP, India. I have little bit knowledge on Quick Test Professional and like to share my knowledge to all through this blog.

Subscribe to get updates on this blog

Enter your email address:

NOTE

Some of the posts posted in this blog are collected and most of them have been prepared by me. If any one have objections regarding any copied posts. Please mail me so that I can take a necessary action on that post.