Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Ron Norman
  Where is Ron Norman?
 San Diego
 California - United States
 Ron Norman
 To: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 Tags
Subject: RE: ASP.NET/VB connect to VFP using VFPOLEdb
Thread ID: 210259 Message ID: 210432 # Views: 24 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: ODBC, ADO and OLEDB
Date: Monday, January 05, 2009 11:22:26 PM         
   


> >
> > Hi again Cetin,
> > Thank you for explaining this to me. I do not see the "IsExclusive()" command in the VFP9SP2 HELP list so I did not know it even existed. I now see it documented on MSDN as a VFP function.
> >
> > Turns out what I was doing was:
> > 1. Double-clicking on a vfp table (which was part of main.dbc) to launch VFP so the default directory would be where the database/tables were located.
> > 2. Issue the USE command to close the table (since it would be opened exclusive)
> > 3. Issue the OPEN database main SHARED command
> >
> > Doing the above results in a .T. for isExclusive(). If I launch VFP by clicking on the VFP icon, change my default directory to c:\database (I don't really need to change default) and then OPEN database main SHARED I get a .F. for isExclusive().
> >
> > So, doing step #1 above actually must open the database even though it does NOT appear in the details when I do a DISPLAY STATUS!!!
> >
> > I will now test my asp code again...thank you,
> > Ron
>
> Ron,
> You can easily solve it (do this once):
>
> Modify command home()+'config.fpw'
>
> Add this line and save:
>
> exclusive = off
>
> Then by default VFP wouldn't open its tables exclusive.
>
> (Or you can do via menu:
> Tools\Options\Data - Uncheck "Open Exclusive")
>
> Cetin Basoz

Cetin...thank you again for ALL your help! After my last reply to you, I did find isexclusive() in the VFP HELP file by scrolling thru all the functions. Simply typing "isexclusive" in the index did not find it.
Also, I thank you for pointing out the ways to turn off the set exclusive. I believe my client may have some reason for having it set "on" so I will check with them. Locally on my dev laptop I have not had to worry about this.

My ASP code works just fine now in shared mode. Thank you, Ron



COMPLETE THREAD
ASP.NET/VB connect to VFP using VFPOLEdb Posted by Ron Norman @ 1/5/2009 1:07:57 AM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Cetin Basoz @ 1/5/2009 10:45:23 AM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Ron Norman @ 1/5/2009 5:08:20 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Cetin Basoz @ 1/5/2009 5:45:07 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Ron Norman @ 1/5/2009 8:55:23 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Cetin Basoz @ 1/5/2009 10:36:42 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Ron Norman @ 1/5/2009 11:22:26 PM
RE: ASP.NET/VB connect to VFP using VFPOLEdb Posted by Samir Ibrahim @ 1/7/2009 5:11:57 PM