Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it good to put the DBC in the exe ?
Message
De
20/07/2001 11:08:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
00533128
Message ID:
00533171
Vues:
18
SNIP

>Since that almost never works, you can provide the DBC, DCT and DCX files in a memo field of a FREE table. When the database files need to be recovered, you can use StrToFile() function to recreate them. You would use FileToStr() function to get them into the memo fields.
>
>Then there is always Stonefield that I highly recommend for keeping your customers' database, tables, indexes, etc., all up to date.

Hi Mark,

Off topic, but what the heck. . .

FILETOSTR()/STRTOFILE() fascinate me. They appear to be a whole lot more "powerful" than the documentation betrays.

VFP Help mentions virtually nothing of this "power" and Hacker's happens to mention that these can be used to duplicate a .DBF.

Reading the Help I come to the conclusion that FILETOSTR() puts data into a memvar. That's all. In fact, since it specifically says "into a character string" I jump to the conclusion that it will be 1 very long string of character data.
BUT it actually does much more than that. I would never have guessed that it "preserves" the original "structure" of the information, letting STRTOFILE() make an exact duplicate of the original file! Yes, Hacker's and posts like yours clued me in, but this capability has (in my opinion) far-reaching value and ought to be documented right in the VFP Help. Sadly even the VFP 7 Help doesn't expand on this.

No reply required - just wanting to comment.

JimN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform