# NoOfFields - script function

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

Syntax:

NoOfFields(table\_name)

Arguments:

NoOfFields arguments

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

Example:

`LET a = 
 NoOfFields('tab1');`