Micro Focus QTP (UFT) Forums
call function from another library - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: call function from another library (/Thread-call-function-from-another-library)



call function from another library - y1799 - 08-19-2010

Need to call function from another function (locates not at the same lib)

example:

Lib1:
function func1
' something here
end function


Lib2
function func2
' some code here
func1 ' call to the function from another lib
end function

==============

The call to func1 or func2 can be done without problem from any Action of QTP test.

Any ideas?

Thanks


RE: call function from another library - guin.anirban - 08-19-2010

Check whether ExecuteFile statement is working or not?


RE: call function from another library - y1799 - 08-19-2010

ExecuteFile good when library not defined for the test. At my case - I added lib to the test's resources, because Action has access to the functions from lib

Sorry, this solution does not work