Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hyperlinks in Memo fields
Message
From
26/02/2019 21:05:16
 
 
To
25/02/2019 03:24:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01666717
Message ID:
01666776
Views:
63
I wrote a control for Visual FreePro, Jr. that can display and edit in two modes: text, and hypertext.

Maybe you could approach it that way. Use an editbox for editing, and abother control for monitoring html.

If you can't find one, I could give you one that uses the VJr code in a DLL.

>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform