I use the VMP framework mostly authored by Drew Speedie.  Look what I 
found in the documentation:

"Since VFP allows you to have more than one .DBC/database open at once,
and each database could have its own GeneratePK table, the fact that
used("GeneratePK") isn't good enough -- we have to make sure that any 
open GeneratePK
  belongs to tcGenPKDatabaseName"

the database name is passed as a parameter and he used cursorgetprop on 
the table
to make sure it is the correct database.  Thanks again Drew!

I only had problems when I checked the table outside of a framework 
call.  Now I know
how to handle it.


Jeff

---------------

Jeff Johnson
j...@san-dc.com
(623) 582-0323

www.san-dc.com


Jeff

---------------

Jeff Johnson
j...@san-dc.com
(623) 582-0323

www.san-dc.com


On 01/24/2012 09:40 AM, Jeff Johnson wrote:
> I have two DBC's with the same file name in them.  Everything works okay
> except for checking if a specific file is being used().
>
> Example:
>       open database dbc1
>       set database to dbc1
>       use dbc1.filename
>
>       open database dbc2
>       set database to dbc2
>
>       ?used('filename') returns .t. but it is dbc1
>
> Is there any way to check to see if dbc2!filename is being used?
>
> Please don't suggest that I change the file name.  It is only one file
> and I would have to change too much code to change it.
>
>
>

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4f1eead9.6080...@san-dc.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to