dbf file extension

Postby Marcelo Via Giglio » Mon Mar 17, 2008 11:49 am

Hi,

ADS can be the solution CRYPT the tables, with or without dictionary

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Postby fafi » Mon Mar 17, 2008 12:30 pm

Hi All !

If you did to hide your file , how to get the files, with this function :
use .... to open dbffile
file(..... to check if file exist
fread(....to open file

regards
Fafi
User avatar
fafi
 
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Postby nageswaragunupudi » Mon Mar 17, 2008 3:46 pm

USE will open hidden files
FILE( .. ) can not see hidden files. But DIRECTORY( *.*, "H" ) lists hidden files also. So hiding a file is not a reliable solution.
FOPEN( .. ) . I guess will open hidden files also.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby xProgrammer » Mon Mar 17, 2008 7:46 pm

Hi Otto

Firstly, to answer your question:

Yes I am using xHarbour/FiveLinux as my main development platform now. I am still using .dbf files too.

I have used SQL before (and wrote a development environment that used it not only to store data, but also to store the program itself as metadata to be served up as dynamic web pages). But I'm not a fan of SQL which was initially developed as an ad hoc reporting tool more than a means of data access for programs which it has become. If you want a true OO view of things SQL "fights" you because queries are only efficient when done as joins.

.dbf files lack some nice features that databases such as SQL server bring, but walking xBase indexes allows for code that is more OO than SQL.

If you hide your data files you should only have to do it once at setup time. Hiding files is by no means a complete defence, but then again nothing is. I always felt that if you make it not so obvious how to fiddle, then only the fairly knowledgable person will get in, and they mostly know enough to not do any harm. If they do, then it is more realistic to take appropriate action from education to disciplinary action.

Regards
Doug
(xProgrammer)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby xProgrammer » Mon Mar 17, 2008 8:10 pm

Hi Otto

If the problem is an Excel user accessing important files just maybe we are on the wrong tack.

If his/her prying is of no value then he/she should be stomped on.

But if there is some purpose to his/her fiddling then maybe the answer is to provide a way for him/her to download the information he/she needs from your program in a format that suits him/her.

Sometimes killing them with kindness is the best answer.

Plus then they have no excuse for fiddling.

Regards
Doug
(xProgrammer)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Re: dbf file extension

Postby Otto » Tue Aug 18, 2009 6:34 pm

Yes, you can open them using the extension that you want or use RddInfo( RDDI_TABLEEXT, ".abc" ) so it will be used by default.

#define RDDI_TABLEEXT 5 /* Default data file's file extension */
#define RDDI_MEMOEXT 6 /* Default memo file's file extension */
#define RDDI_ORDBAGEXT 7 /* Default multi tag index's file extension */
#define RDDI_ORDEREXT 8 /* default single tag index's file extension */
#define RDDI_ORDSTRUCTEXT 9 /* default single tag index's file extension */


Does someone know how to change the default memo file's file extension and index's file extension for a single dbf-file.
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: dbf file extension

Postby nageswaragunupudi » Wed Aug 19, 2009 9:47 am

Change the extension with the above functions. Open the table and again use the same functions to restore original extensions
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: dbf file extension

Postby Otto » Wed Aug 19, 2009 10:27 am

Hello Mr. Rao,
thank you for your help.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: wartiaga and 105 guests