OK
There is not bugs.
But I have to type your function 25 times (I have 25 cursors) and each time to change the cursor name twicw.
I found better way as following (one line for each cursor and one time to change):
In the init of the form I added:
nalias=0
in the command button beginning:
nalias=nalias+1
if nalias>1
use in cursor1
use in cursor2
use in cursor3
use...
endif
Anyway, I didn't find a way to say Foxpro: 'Allow me to use with every cursor name even if it's existed'.
Thank you
Chaim