Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAttach method
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
CursorAttach method
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01505077
Message ID:
01505077
Views:
108
The CursorAttach method VFP help has the following sentence:
A cursor or table can have only one instance of a CursorAdapter object attached to it at any given time.
I am trying to understand if the above will or will not prevent me from having the following.

Say I create a cursor adapter object and then fill the cursor. Then I create another instance of a cursor adapter. Can I attach the cursor that was created/filled for the 1st cursor adapter object to the 2nd one? and then attach the same cursor to the 3rd instance of the cursor adapter, and so on. Note that each cursor adapter object will be referenced to a different variable. So in essence I want one cursor to be attached to more than one cursor adapter objects. Is this possible? TIA.

UPDATE. I did a little test and it looks like you can't attach a cursor to a CursorAdapter while it is attached to another CursorAdapter. So it looks like it has to be Deattached first. This answers my question as Negative.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform