Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CGridList's SetOrder Method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00394524
Message ID:
00394865
Vues:
10
Doug,

What is the return value of myUDF? If you had it return alias.fieldname, would that fix the problem?

Kind Regards,

Mat

>Kevin,
>
>I'm running into an error that I think the framework can avoid. Here is the scenario:
>
>I'm using the CGridList class, I have a ControlSource for two of the columns that use a UDF. When I try to sort on a column, the click event of the header fires, and then it tries to sort on this column. In the SetOrder method of the grid, there is code that tries to decipher what the field and alias is. It doesn't get done correctly because of the UDF in my ControlSource. An example: columns ControlSource = MyUDF(v_SomeView.SomeField). It errs because of this. Can you place some logic here to try and determine the proper field name and alias, or at least check to see if the alias (that was determined) is in use before using RECNO() on it.
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform