info(“fieldcount”)

The info(“fieldcount”) function returns the number of fields in the current database.


Description

This function returns the number of fields in the current database. For example, you could use it to test to see if the current field is the last field of the database.

info("fieldnumber")=info("fieldcount") ☞ true if currently on last field

Here is an example that shows how to create a procedure that scans every field in the database from left to right, performing some operation on each field.

for fn,1,info("fieldcount")
    field fn+0
    // DO SOMETHING FOR EACH FIELD
endloop

See Also


History

VersionStatusNotes
10.0NewNew in this version.