Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and selected control
Message
From
18/09/1997 05:23:11
 
 
To
17/09/1997 09:12:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00050135
Message ID:
00050519
Views:
29
Hello Edward!

I thought it, too. Combo rowsource is Array. And as I tested it, Recno() gives different result in DynamicCurrentComntrol than in DynamicForeControl.


BB




>>Thank you, Edward for your answer!
>>
>>I use the commands, you suggested. But the text box sometimes remains active. So, as I wrote, changing row by keyboard from combo cell, or clicking to other row on any other cell in the text/combo column, the text box got focus, instead of combobox. (DynamicCurrentControl works only, if I change for other column cells than this combo/text.) So I put a Combo.SetFocus() command in the GotFocus event of the textbox. It works fine. (I tried other things, but this was only, that works.)
>>
>>P.S. I include my code:
>>
>>in init event of grid:
>>public nLastRecno
>>nLastRecno=RECNO()
>>this.column2.dynamiccurrentcontrol="iif(recno()#nLastRecno,'text1','combo1')"
>>this.column2.sparse=.f.
>>
>>in AfterRowColChange event of Grid
>>nLastRecno=Recno()
>>this.refresh()
>>
>>BB
>>
>The main thing that it works now. I would only suggest to Select work area before your issue RECNO(). I assume that the combobox has some different alias as RowSource and sometimes Foxpro can miss grid.recordsource and evaluate Combo.rowsource instead.
Previous
Reply
Map
View

Click here to load this message in the networking platform