Subject |
Re: Project read only on newly created database correction |
From |
Charlie <tm@tc.com> |
Date |
Mon, 27 May 2024 13:04:57 -0400 |
Newsgroups |
dbase.getting-started |
I was wrong below. It isn't a coding problem it is windows for some reason has the entire database folder in c:\programdata as read only. Glad this is the problem but can I prevent this from happening in yje iss script? I doubt users will know how to drop the read only as I haven't figured that iyt yet!
Charlie Wrote:
> I did run the database through programdata and it still comes back read only. But it looks like it is when you change rows in certain grids. Unfortunately for me the code is complicated and has both oodml and xdml functions. I am going to display one of the codes involved. It doesn't include the functions but I can provide those if needed. Anyone see anything suspicious in this code? This is not going to be fun to figure out I don't think!
>
> function GRID3_onSelChange()
> cl = form.collection1.rowset
> ca = form.category1.rowset
> me = form.memo1.rowset
> cu = form.country1.rowset
> if me.fields["usa"].value = false
> class::totsee()
> class::totsc()
> form.checkbox1.value = false
> form.collection1.requery()
> fltrc = trim(cu.fields["country"].value)
> cl.filter = [country ='] + fltrc + [']
> if not empty(me.fields["custsku"].value)
> fltr = trim(me.fields["mem"].value)
> cl.filter = [country ='] + fltrc + [']
> sk = me.fields["custsku"].value
> cl.applylocate( "sku= '" + sk + "'" )
> me.fields["custsku"].value = ""
> me.save()
> endif
> me.fields["memc"].value = fltrc
> me.save()
> form.pushbutton5.setfocus()
> me.fields["skubmc"].value = cl.fields["sku"].value // change
> me.save()
> endif
> return
>
> Ken Mayer Wrote:
>
> > On 5/26/2024 10:49 AM, Charlie wrote:
> > > I have finally solved the problem I was having with the inno project. Everything looks good. The database is set up in the bde, directories are correct, etc.
> > >
> > > When I go into the program though, I am getting read only errors on all the tables (I think). Any ideas how to fix this? Thanks
> >
> >
> > Where are your tables being installed? That makes a huge difference.
> >
> > If they are installed, for example, in the C:\Program Files (x86)
> > folder, it's an issue. If they are installed in C:\ProgramData, you
> > should be okay ...
> >
> > Ken
> >
> > --
> > *Ken Mayer*
> > Ken's dBASE Page: http://www.goldenstag.net/dbase
> > The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> > dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> > dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
> > dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
> > dBASE DOS to Windows Tutorial:
> > http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm
> >
>
|
|