# query.getRow()

this function is deprecated, use the function [QueryRowData()](../../functions/queryrowdata.md) instead.

```
query.getRow( rowNumber=number )
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| rowNumber | number | Yes | position of the row to be returned *Alias: rowNum* |  |

# Examples

```cfml
q = queryNew( "id,name","int,varchar");
q.addRow(4);
q.setCell("id", 1, 1);
q.setCell("id", 2,2);
q.setCell("id", 3,3);
q.setCell("id", 4,4);
q.setCell("name", "one", 1);
q.setCell("name", "two", 2);
q.setCell("name", "three",3);
q.setCell("name", "four", 4);
dump(q);
writeDump(q.getrow(3));
writeDump(q.getrow(2));
```

# Categories

[Queries](../../../categories/query.md)

# See Also

[QueryGetRow()](../../functions/querygetrow.md), [QueryRowData()](../../functions/queryrowdata.md), [Query](../query.md)