Function Help

I have a script sequence that creates an ndl file that mimics the Notes doclink function in Exchange. Within the code there is a call to a function that I am having problems with. The script creates the ndl called fileName$, and the function passes the fileName$ to the email with the following call statement:

Call ‘function name’ (db, doc, fileName$)

I’m having problems building the parameters needed for the function and anyhelp would be greatly appreciated. Thanks.

Subject: Function Help

function blahblah ( db as Notesdatabase, doc as Notesdocument, filename as string) [ as …]