>>>>1. Don't name it OpenTable, make different name for the procedure.
>>>>
>>>
>>>Please explain...
>>>
>>>
>>
>>It is always a good idea to not use VFP Reserved words/methods. You don't know when and how it may bite you (though it may never will).
>
>
>I looked under Reserved Words in Help, and it has OpenTables, but not OpenTable.
>
Practically every keyword in VFP can be shortened to 4 first characters.
BTW, check my other reply with the function similar to yours. In 2001 (when it was written) I put a lot of efforts into it.
If it's not broken, fix it until it is.
My Blog