PUBLIC BOOLEAN FUNCTION CellExists (RECORD rec,STRING cellname)
Description
This function checks if the record contains a cell with the specified name. Cell names are case-insensitive
Parameters
rec
Record to read
cellname
Name of the cell to look for
Returns
True if a cell with name cellname exists in record rec, false if it does not exist or if the record does not exist.
Example
// Ensure that the cell 'title' exists in the record
RECORD myfile := FindFile(15);
IF (NOT CellExists(myfile,"title"))
Print ("The files table is broken or file 15 does not exist!");