Thank you for your answer
I added your code in the beginning of the command button.
I got the following error message:
Operator/operand type mismatch (Error 107)
I debuged it and I discovered that the error apeared only in the second scan of the array.
PS
I can use with 'aused' if I will start all the names all of my cursors with xxx and then to use with array (if left(myarray,i,1)='xxx'...).
I have to pray that never I will not bump with table who starting with xxx.
Ohh, I have better way:
Create one array with dbf extention drom the current directory.
create second array for the used tables\cursor.
scan the second array
if the line not apeared in the second array then we can use with 'use in' command.
This is my first steps in Foxpro, If it's not difficult for you, can you build something like this?
Any way, thank you!
Thank you
Chaim