# FieldNumber - script function

The FieldNumber script function returns the number of a specified field within a previously loaded table. If the function is used within a LOAD statement, it must not reference the table currently being loaded.

Syntax:

FieldNumber(field\_name ,table\_name)

FieldNumber arguments

| Argument | Description |
| --- | --- |
| field\_name | The name of the field. |
| table\_name | The name of the table containing the field. |

If the field field\_name does not exist in table\_name, or table\_name does not exist, the function returns 0.

Example:

`LET a = 
 FieldNumber('Customer','tab1');`