Difference between revisions of "DBF FMT()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
Line 1: Line 1:
 
 
==PURPOSE==
 
==PURPOSE==
 
Return the format file name
 
Return the format file name
Line 46: Line 45:
  
 
==SEE ALSO==
 
==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()]]
+
[[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()]]
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SDK]]
 
[[Category:SDK]]

Latest revision as of 13:17, 30 March 2009

PURPOSE

Return the format file name


SYNONYM

api_dbf_fmt()


SYNOPSIS

#include "dbapi.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.

  1. include <stdio.h>
#include "dbapi.h"
 
dbapi_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()