Best way to attach a chosen file to an RTF

Best way to attach a chosen file to an RTF

Using LotusScript, I want to provide a user with a standard Windows file select pop-up box. The user will choose a file that I will then attach to a Rich Text field. My current code uses an inputbox function to get the path and file name. This is clunky at best (although it does work). Do you have any other suggestions?

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

I suggest you use @Prompt([LocalBrowse]). This gives the user a neat pop-up box, in which they can search their local system. The function returns the name of the file to the variable you assign to the function, and it allows you also to set a filter of which file types to look for.

This was first published in July 2003