Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Database Size
Message
De
19/01/2001 17:05:55
 
 
À
19/01/2001 16:51:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00466031
Message ID:
00466038
Vues:
10
>There is a certian Accounting product out there, written in VFP5.0. That sells the product based on datbase size. You can buy half GIG, 1 GIG , ect. How can you programatically put a size limit on datafiles?

The code snippet below is not accurate, but the concepts are correct.
lcFile = c:\temp\junk.dbf\

If FILE(lcFile)
     Set compatible on
     lnSize = FSIZE("myTable")
     do case
     case lnSize / 10000000 = 1
          ? '1 gig'
     case lnSize / 10000000 = .5
          ....
     endcase
Endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform