On 01/24/2012 09:53 AM, Tracy Pearson wrote:
> Jeff Johnson wrote on 2012-01-24:
>>   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.
>>
>>
> Jeff,
>
> You can use the DBF() to find its path. Then DBC() to find its path. As long
> as they are in the same location, this may work.
> Though DBGetProp() for the Table would be able to give you the right DBF()
> value.
>
>
> Tracy Pearson
> PowerChurch Software
>
>
Tracy:  Unfortunately there is no Database property for a table!  You 
can only tell if it belongs to a table.

Thanks,

Jeff

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

Jeff Johnson
[email protected]
(623) 582-0323

www.san-dc.com




_______________________________________________
Post Messages to: [email protected]
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/[email protected]
** 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