Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot overwrite cursor
Message
 
 
To
11/03/2006 12:19:47
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01103419
Message ID:
01103424
Views:
16
Steve,

In the Destroy() of your form you should:
use in curx
to close the cursor. This way your form will properly clean up after itself.

The used() function will tell you if an alias is open.

>In a programme, I create a readwrite cursor (eg- curx). The cursor remains active after the programme is over.
>I relaunch the programme again which has the same code to create the same cursor. I get the error "Alias name already in Use"
>
>I'm sure my questions may have simple answers:
>
>One , what is the code to find out whether curx is open?
>Two, if open, what is the code to close only curx?
>Three, is there any flaw in my program, because normal cursors are supposed to overwrite existing cursors?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform