Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
USE customer.dbf
IF EMPTY(FIELD("cust_name","customer"))
* field cust_name doesn't exist in workarea customer
Endif
VarType(Customer.Cust_Name)
? FieldExist('ARCust','CustNO') && Table ARCust, Field = 'custNo
FUNCTION FieldExist(tcTable,tcField)
IF NOT USED(tcTable)
use (tcTable) in 0
ENDIF
llFound = .F. && not found
SELECT (tcTable)
FOR gnCount = 1 TO FCOUNT( ) && Loop for number of fields
IF UPPER(ALLTRIM(FIELD(gnCount))) == UPPER(ALLTRIM(tcField)) && Display each field
llFound = .T. && found it
EXIT
ENDIF
NEXT
RETURN llFound
ENDFUNC
the final recommendation is FIELD()