I guess you crashed the form at some stage and the .scx/sct table was left open 
somewhere hence not being able to open it. The open file could also be in 
another instance of VFP which isn't displayed because it has gone rogue at some 
stage and doesn't present a visual interface.

I have had this happen quite frequently when testing tricky code especially 
when using office automation. The "stranded" instances of VFP or office apps 
can be seen in the task manager and closed accordingly.

Dave

-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Joe Yoder
Sent: 05 May 2016 22:05
To: Foxpro forum <[email protected]>
Subject: Re: Strange " File access is denied" message

Thanks Tracy,

I tried using with the share clause and it worked without error.
I renamed the files and the same files with different names continued to give 
the error, I restarted the computer and the problem went away!

I'm glad to have my code back but am still puzzled about what was happening,

Thanks again,

Joe

On Thu, May 5, 2016 at 2:20 PM, Tracy Pearson <[email protected]> wrote:

> Joe Yoder wrote on 2016-05-05:
> >  I have a situation where "File Access is denied" shows up any time 
> > I try
> to
> >  open the main form in my current project.  I'm running Windows 10 
> > and
> when
> >  I get into File Explorer I can open both the .SCT and the .SCX 
> > files
> from
> >  notepad without a problem.  If I double click on either one VFP 
> > opens,  attempts to open the file, and throws the error message.
> >
> >  VFP opens other screen files without a problem so it seems there 
> > must be
> a
> >  problem with that specific file inside VFP.  I tried opening the 
> > .SCX as
> a
> >  table and got the error too.
> >
> >  Any ideas about why this is happening and how to get around it will 
> > be
> most
> >  welcome!
> >
> >  Thanks in advance,
> >
> >  Joe
> >
>
> Joe,
>
> VFP will open the files exclusive. Notepad will not.
> Did you try to use the SCX as a table with the SHARE clause?
>
> Do you have a process open or hung that still has the form open?
>
> Tracy Pearson
> PowerChurch Software
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.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