PRB: Unable to Change Sorted Property in Form DesignerID: Q141638 3.00 3.00b WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSThe Sorted property of a list box or combo box contained in a form in the Form Designer cannot be changed from '.F. - False' to '.T.- True' if the RowSourceType property is set to anything other than '0 - None' or '1 - Value'.
CAUSEThe Sorted Property of a combo box or list box can be set to '.T. - True' only if the RowSourceType property is set to either '0 - None' or
STATUSThis behavior is by design.
MORE INFORMATIONIf it is intended for a list box or combo box to have a RowSourceType of anything other than 0 (None) or 1 (Value), then the Sorted Property cannot be set to anything other than '.F. - False' because it cannot have any effect on any of the other RowSourceTypes. It is possible to set the Sorted Property to '.T. - True' while the RowSourceType is either 0 (None) or 1 (Value) and then to set the RowSourceType to something different. If this is done and a form is closed and saved, the Sorted Property will return to '.F. - False'. For more information on the Sorted Property, please refer to the "Sorted Property" topic in the Help file.
Steps to Reproduce BehaviorNOTE: This example uses a list box, but the same could also be applied to a combo boxl. 1. Create a new form and place a list box on it. 2. Set the RowSourceType Property of the list box to '0 - None' (the 3. Change the Sorted property for the list box from '.F. - False' to
4. Change the RowSourceType property for the list box from '0 - None' to
5. Change the Sorted property for the list box from '.T. - True' to
If, after implementing steps 1 through 4, you save and close the form, the
list box RowSourceType property would be '5 - Array' and the Sorted
property would have been '.T. - True'. But, once the form is opened within
the Form Designer, the Sorted property will be reset to '.F. - False'.
Additional reference words: 3.00 3.00b VFoxWin KBCategory: kbprg kbprb KBSubcategory: FxprgClassoop
|
Last Reviewed: December 26, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |