>>I want to insert the selected item into an array
>>In your code where can i do that ?
>>
>>Thanks a lot
>
>
With the help of Nadya + email I can understand this is about MultiSelectGrid. Assuming you have placed commandbutton and created form array property aSelected as Nadya suggested I have an additional piece of code that might help :
>
dimension thisform.aSelected[1]
>thisform.aSelected = .f.
>* Above 2 lines are needed in case SQL returns nothing
>* Then aSelected contents would be what they were before
>select myField1, myField2...myFieldn ;
> from (thisform.MultiselectGrid1.recordsource) ;
> where lSelected ;
> into array thisform.aSelected
This could be anywhere in any method rather than a commandbutton click code, just keep in mind that grid recordsource is 'gone' in its destroy event.
>Cetin
This is much more elegant and simple, than the code I proposed :) I may grab it also. Thanks.
If it's not broken, fix it until it is.
My Blog