>I have a grid in the second form
>
>
>Now in the activate method of the second for I wrote
>
>SET ORDER TO datacx IN consultas
>
>
>But it didnt work
>
>Is it correct ?
>
>datacx it the cursor order property value in the first form
If your not using a private datasession what I would do is set a debug point a the SET ORDER TO statement then in the VFP debugger put a stop on ORDER(''consultas') to see if/where it's getting changed at.
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers