>>>In vfp60, I have the following code:
>>>select * from mytable into cursor mycursor...
>>>I use this line of code more than once in my program...
>>>When I try to use this line a code for the second time, I get an error message saying...Alias name afready in use...I need to delete mycursor before I run the select statement...how do I delete my cursor?
>>
>>USE IN mycursor
>Hi Sergey,
>Are you saying to use this code...
>USE IN mycursor
>SELECT * FROM mytable INTO mycursor
The code below will close your cursor only if it is open
IF USED("mycursor")
USE IN mycursor
ENDIF
SELECT * FROM mytable INTO mycursor
--sb--