Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing cursor properties in runtime
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00250455
Message ID:
00250689
Views:
18
>How would I go about checking to see if a cursor is already open?

?USED("MyTable")

Will tell you. But I think this is a funny way of doing things. Using the Default datasession and putting cursors in the DE has a funny way of biting you consitently. If a form has a table in its DE, and that table is already open, the form does not open it's own copy. But it doesn't remember this when it closes, so it will close the table when the form closes, potentially stomping on whatever for DID open the table originally.


>I wish to use the default data session, which I thought is what people usually do.
>

Nope. Its a bunch more encapsulated to use private datasessions, and pass parameters around from form to form. This makes maintenance and tracing problems (like yours) much easier.

>Another thing: how come my PREformatted code is coming out double-spaced in the thread?

This is a bug with Michel's message parser. It happens when there is more than one PREformatted text block in the message- the second one comes out double-spaced.
THIS text
is single spaced
This text comes out 
double spaced
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform