7.4

Table Of Contents
Example
define(&x,integer,1) //Define loop variable
define(&fn,string,'') //Define name variable
margin(0,0)
for(&x,1,1,fieldcount()) //Loop through all fields
set(&fn, fieldname(&x)) //Store field name
show(&fn) //Display field name
moveto(2,&current.y) //Move right
show(field(&fn)) //Display field contents
crlf() //Move to next line
endfor()
FieldCount (function)
Returns a count of fields in the current database record. Since all records always hold the same number of fields, this value will
not change unless a new sample data file is used. This function is only useful in database emulation mode.
Syntax
fieldcount() integer value
Code Sample Example
"Field (function)" (page 542)
FieldName (function)
Returns the name of the specified field for the current record. This function is only useful in database emulation mode.
Syntax
fieldname( index ) string value
Argument
index
Integer value specifying the index of the field whose name should be retrieved. Correct values range from 1 to fieldcount().
Code Sample Example
"Field (function)" (page 542)
Fill (procedure)
Fills the current closed shape, using the colour specified with the setfillcolor command. Only the inside of the shape is filled,
not its outline. To fill and outline the shape, use strokeandfill command instead. If you only want to outline the shape, use
stroke. Only closed shapes can be filled.
Syntax
fill()
Argument
None
©2010 Objectif Lune Inc - 278 -