DBF FMT()

From Lianjapedia
Jump to: navigation, search

PURPOSE

Return the format file name

SYNONYM

api_dbf_fmt()

SYNOPSIS

#include "lianja_api.h"
 
char	*DBF_FMT()
 
<input parameters>
none
 
<output parameters>
none

DESCRIPTION

The DBF_FMT() function will return the name of the currently active screen format file as a character string, or a NULL string if none is active. The DBF_FMT() function returns the format file name in lower case including the file extension.

EXAMPLE

The following example checks for a screen format file and removes it.

#include <stdio.h>
#include "lianja_api.h"
 
lianjaapi_dbf_fmt()
{
    char	*format;
 
    format = DBF_FMT();
 
    if (format != NULL)
       COMMAND( "set format to" );
}

SEE ALSO

COMMAND(), DBF_ALIAS(), DBF_DBF(), DBF_DELETED(), DBF_FETCH(), DBF_FILTER(), DBF_INDEXKEY(), DBF_INDEXORDER(), DBF_NDX(), DBF_SELECT(), DBF_USED(), FIELD_COUNT(), FIELD_LOOKUP()