How can I check whether a cursor exists or not?  
Author Message
General Fault





PostPosted: Visual FoxPro General, How can I check whether a cursor exists or not? Top

That's the question.

Thanks



Visual FoxPro2  
 
 
Aleniko





PostPosted: Visual FoxPro General, How can I check whether a cursor exists or not? Top

I'm not sure what do you mean, but I think a simple if used command should help.

if used("curSomeCursor")
wait "Cursor exists" wind
endif

 
 
General Fault





PostPosted: Visual FoxPro General, How can I check whether a cursor exists or not? Top

Mmmh, it worked, that's weird because the first time I used "used" didn't work.