Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database Size
Message
From
19/01/2001 17:05:55
 
 
To
19/01/2001 16:51:31
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00466031
Message ID:
00466038
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform