06 November 2017

Difference between ByVal And ByRef In UFT

Function test(ByVal var)
    
    info = "test"
    msgbox var
    msgbox info
    
EndFunction

info = "test1"
Call test(info)  'byval - test1, test  


Function test(ByRef var)
    
    info = "test"
    msgbox var
    msgbox info
    
EndFunction

info = "test1"
Call test(info)  'byref - test,test


...

No comments:

Post a Comment

AOM - Automation Object Model

'Creating QuicTest Object Set  qtapp =  createobject ( "QuickTest.Application" ) 'Launching the Application If  qtapp...