Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CGridList's SetOrder Method
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00394524
Message ID:
00394909
Views:
10
It's not a problem with the UDF.... see there is code in the SetOrder method that tries to determine the alias and field from the controlsource. It does this incorrectly because I have a UDF in my controlsource.

Thanks for the effort though.

>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.

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Previous
Reply
Map
View

Click here to load this message in the networking platform