Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hyperlink in a grid column
Message
De
14/03/2007 01:45:01
 
 
À
13/03/2007 04:58:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01202916
Message ID:
01203255
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform