Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bhushan Sahni
  Where is Bhushan Sahni?
 Bhushan Sahni
 To: Ellen Solomon
  Where is Ellen Solomon?
 Bet Shemesh
 Ellen Solomon
Subject: RE: sharing cursor between dll's
Thread ID: 268718 Message ID: 268719 # Views: 48 # Ratings: 1
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Wednesday, July 14, 2010 9:09:49 AM         

> Hi everyone!
> I have a program, some of which is divided into several dll's. One dll creates some cursors, but then needs to ask another dll for some analysis on those cursors.
> [In the past I had difficulty with one dll not having access to the other's workspace (maybe it's called a session) - I had to close the table, and then let the other dll open it with its own alias.]
> Any suggestions on how 2 VFP dll's can share the same cursors?
> Thanks,
> Ellen

Hi Ellen,

One of the possible solutions can be DBF("CursorAliasName") function. You can get the path/file name of the cursor and send it across to the other DLL if the data sessions are different.

Perhaps this helps.

Bhushan Sahni
Eitzen Group (IT)
Visual Foxpro a dream house for developers


sharing cursor between dll's Posted by Ellen Solomon @ 7/14/2010 9:07:10 AM
RE: sharing cursor between dll's Posted by Bhushan Sahni @ 7/14/2010 9:09:49 AM
RE: sharing cursor between dll's Posted by tushar @ 7/14/2010 9:12:07 AM
RE: sharing cursor between dll's Posted by ho me @ 7/14/2010 5:42:28 PM