Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 9.0 WishList Item
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00717174
Message ID:
00717250
Views:
11
As John wrote you can use editor hyperlinks.
Especially file hyperlink can be useful. It can drive you to any program. It can be also program you wrote. You can asociate a file extension with the program - in such case your program should get the file name as parameter and take any action.
I really like your idea to make program text more active and I think that VFP editor can be much more active.
For example when in method code is line as line below:
lcTextInfo = thisform.BuildInfo()
I would like to have possibility to go to BuildInfo method code just by ctrl-clicking on the thisform.BuildInfo() text.
I would like also to have possibility to declare lcTextInfo as LOCAL variable just by ctrl-clickig on the text.
If in VFP editor would be a hook to general (not only hyperlink) ctrl-click action - it would be very nice.


>The _VFP.EditorOptions allows you to specifiy when a hyperlink in
>code is followed; Either with Click or Ctrl+Click.
>
>What would be nice is a _VFP.LinkClickCommand property that allows
>the programmer to specify a PRG to pass the URL to. Then I could
>control what happens when a hyperlink is clicked.
>
>
>Example:
>
>PPROGRAM: CodeLinks.Prg
>LPARAMETERS cUrl
>
>  cUrl = LOWER(ALLTRIM(cUrl))
>
>  DO CASE
>
>    CASE LEFT(cUrl, 3) = "www" OR LEFT(cUrl, 4) = "http"
>      ** Navigate to the web page
>
>    CASE LEFT(cUrl, 5) = "mailto"
>      ** Send an email
>
>    OTHERWISE
>      ** Run a command
>      &&cUrl
>
>
Previous
Reply
Map
View

Click here to load this message in the networking platform