Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sort grid elements without index?
Message
De
28/05/2005 13:08:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01018360
Message ID:
01018377
Vues:
12
>I have another somewhat related problem that I have immediately run into. I am creating my grid from the cursors field list. I am assigining all the grid and column properties in a loop through the fieldlist, which is working very well. Now I am trying to assign logic to the header click method (first time I have tried this).
>
>My problem is that I am unsure how to populate the 'Click' method with the code I want to have executed. I have tried:
>
>
>scan
>.
>.
>     thisform.grid1.column1.header.click = 'thisform.gridorder(this.parent.controlsource)'
>.
>.
>endscan
>
>
>This is causing an error telling me that 'Click is a method, event, or object.' I understand why I am getting this, but how do I get around it?
>
>Thanks very much.

In the Visual Extend framework, they just use a builder that puts the code directly into the form at design-time.

I think it might also be possible to create a header class, including all required code, and add it programmatically to the Column - but I have never tried this.

In VFP 8 and later, I think you can use BindEvent() for this purpose.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform