Microsoft KB Archive/131601

= PRB: AselObj Doesn't Work for Objects Added in Grid Columns =

Article ID: 131601

Article Last Modified on 2/15/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q131601



SYMPTOMS
AselObj reports that nothing is selected when the currently selected object is a control that has been added to a grid column. AselObj reports that the currently selected object's container is the grid rather than the column.



STATUS
Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Create a form called Test. Add a grid to the form and set the ColumnCount property to 1. Use the properties sheet to select Column1 of the grid. Drop a check box into the column. The properties sheet should now show that the check box is the currently selected object.  Click the Command window, and type the following lines of code: x=ASELOBJ(y)   && Reference to selected object ?x             && Number of selected objects The number 0 is displayed when the expected value of x is 1.   Type the following in the Command window: c=ASELOBJ(d,1) &&reference to selected object's container ?c Now the number 1 (the expected value) is displayed. However, the reference to the selected object's container is incorrect as shown by this command: ?d[1].name Grid1 is displayed when Column1 is the expected value. 

Additional query words: FoxWin 2.60a

Keywords: KB131601

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.