QTP Script to get count of number of mails in outlook application-VB Script to get count of number of mails in outlook application



QTP Script to get count of number of mails in outlook application


Set a = CreateObject("Outlook.Application")

Set b = a.GetNameSpace("MAPI")

Set c = b.GetDefaultFolder(6)

msgbox(C.Items.Count)

QTP Script to display Message Box Text in Multiple Lines-VB Script to get message box text in multiple lines



qtp script to get message box text in multiple lines


MsgBox ("Line1" & vbCrLf & "Line2" & vbCrLf & "Line3" & vbCrLf & "Line4" & vbCrLf & "Line5")


Output -

Line1
Line2
Line3
Line4
Line5

QTP Script to get version of Outlook-VB Script to get version of Outlook


QTP Script to get version of Outlook

dim a
set a=createobject("Outlook.Application")
Msgbox(a.version)

Related Posts Plugin for WordPress, Blogger...

Fun and Knowledge