>>I have investigating allowing the user to place hyperlinks in memo fields. Either linking to web pages or local files. The problem I have encountered is that if the path to local files contain spaces, the hyperlink does not work. My first thought was to encode the path with %20 for the spaces. But that seem not to work. Does any one have any suggestions how to format the links correctly.
>>
>>Thanks in advance.
>
>when you say embed hyperlinks what exactly do you mean? You mean put `a` html tag into the text?
>
>Local file links should work with spaces encoded as `%20` in the same way as Web HTTP links - I do this all the time in Help Builder. If you use full file paths that include a drive you might have to use syntax like this:
>
>file:///c:/somepath/subpath/my%20file.txt
>
>The slash direction of the path itself shouldn't matter though. Note that file links may hit security issues in certain browsers. I think FireFox may not load them if loaded from a Web page (you a `mark of the Web` header to get around this) while Edge/Chrome/IE load it. Also you can't load file links in AJAX requests that dynamically load content through code which is not allowed.
>
>
>+++ Rick ---
I am using a MODIFY MEMO command, I have not tried it in an EditBox control yet. If the response is different, I may have to re-think my approach. I was hoping to keep the design simple. The Memo Window has all the natural features I need. If I take the EditBox method, I will have to add several ON KEY LABEL commands, and possibly other to match that the MODIFY MEMO provides normally.
I idea is to provided the user a natural means to link to a file (or web site) inside a any text they are writing. The file could be either a text, Word, image, and anything on their network. When clicked, the file would open in their default viewer or editor.
Greg Reichert