Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hyperlink in a grid column
Message
From
14/03/2007 01:45:01
 
 
To
13/03/2007 04:58:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01202916
Message ID:
01203255
Views:
15
>Hi All
>
>How can I make the contents of a grid column a hyperlink. And only do so if the cell is not empty. I want to show the cell content and allow the user to click it to load the relevant web page.
>
>Thanks.
Hi Jos

What I do is I set the property of the

Grid.Column.TxtBox.EnableHyperlinks = .T.

Then I set the Column.Sparse = .F.

This way if VFP recognises a hyperlink - www.MyWebSite.com or http://www.levelextreme.com/index.html

then the underline appears automatically and when you press CTRL the hand appears and if you then click, IE opens with that page.

This way I can get Hyperlinks in my grid without a single line of extra code.

Bernard
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform