CT_ISDBT

 ISDBT()
 Determines if a memo file (.dbt) is present

 Syntax

     ISDBT() --> lPresent

 Returns

     ISDBT() returns .T., if a database has a memo file associated with it.

 Description

     ISDBT() determines if a database has a memo file associated with it, and
     allows you to compress that memo file.

 Example

     If the database has a memo file, the database is copied to minimize the
     memo file:

     USE DATA
     IF ISDBT()
        COPY TO TEMP
        CLOSE DATABASES
        DELETEFILE("DATA.DBF")
        DELETEFILE("DATA.DBT")
        RENAMEFILE("TEMP.DBF", "DATA.DBF")
        RENAMEFILE("TEMP.DBT", "DATA.DBT")
     ENDIF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.