Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UDF as control source for grid column
Message
 
À
15/05/2001 22:59:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00507675
Message ID:
00509463
Vues:
22
David,

>>Yikes, I've asked this before; but how do I make one column in a grid, which is otherwise bound to a table show the value of a user defined function, eg grid.controlsource= myfunction(mytable.fieldname)
I can't seem to make it work...>>


Even if you do get it to work, its going to be *REALLY* slow (that UDF is firing for every cell on every refresh). Might I suggest you reference an object property (vs the UDF) which is updated by your UDF. That way the UDF is called only when some (legitimate) trigger event calls it, as opposed to being called dozens, hundreds, maybe thousands of times even though the result doesn't change.

Regards,
Thom C.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform