Question: uft how to call function?
Answer: Step 1) To create a new function library in HP QTP. Select File > New > Function Library. It opens as a new tab in QTP.
Step 2) Associate the library with your test. Click File > Settings > Resources > Associate Function Library.Click Add. ... 
Step 3) Last step to call the function in your test script.
Important Notes.