<div class="meta" robots="noindex">

</div>

Class

# DatabaseRecord

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `DatabaseRow</api/databases/databaserow>` as a replacement.

</div>

## Description

Used to create new `Database</api/databases/database>` records (rows). The methods are used to populate the fields in a record (row). Call it once per column.

## Methods

<div class="rst-class">

table-centered_column_4

</div>

<table>
<thead>
<tr class="header">
<th>Name</th>
<th>Parameters</th>
<th>Returns</th>
<th>Shared</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><code class="interpreted-text" role="ref">BlobColumn&lt;databaserecord.blobcolumn&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td><blockquote>
<p>""</p>
</blockquote></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td><code class="interpreted-text" role="ref">BooleanColumn&lt;databaserecord.booleancolumn&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Boolean&lt;/api/data_types/boolean&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td><blockquote>
<p>""</p>
</blockquote></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">Currency&lt;/api/data_types/boolean&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td><code class="interpreted-text" role="ref">Column&lt;databaserecord.column&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td></td>
<td>index As <code class="interpreted-text" role="doc">Integer&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td><code class="interpreted-text" role="ref">CurrencyColumn&lt;databaserecord.currencycolumn&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">String&lt;/api/data_types/currency&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">Currency&lt;/api/data_types/currency&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td><code class="interpreted-text" role="ref">DateColumn&lt;databaserecord.datecolumn&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Date&lt;/api/deprecated/date&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">Currency&lt;/api/deprecated/date&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td><code class="interpreted-text" role="ref">DoubleColumn&lt;databaserecord.doublecolumn&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Double&lt;/api/data_types/double&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">Double&lt;/api/data_types/double&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td><code class="interpreted-text" role="ref">FieldCount&lt;databaserecord.fieldcount&gt;</code></td>
<td></td>
<td><code class="interpreted-text" role="doc">Integer&lt;/api/data_types/integer&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td><code class="interpreted-text" role="ref">FieldName&lt;databaserecord.fieldname&gt;</code></td>
<td>idx As <code class="interpreted-text" role="doc">Integer&lt;/api/data_types/integer&gt;</code></td>
<td><code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td><code class="interpreted-text" role="ref">FieldType&lt;databaserecord.fieldtype&gt;</code></td>
<td>idx As <code class="interpreted-text" role="doc">Integer&lt;/api/data_types/integer&gt;</code></td>
<td><code class="interpreted-text" role="doc">Integer&lt;/api/data_types/integer&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td><code class="interpreted-text" role="ref">Int64Column&lt;databaserecord.int64column&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Int64&lt;/api/data_types/additional_types/int64&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">Int64&lt;/api/data_types/additional_types/int64&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td><code class="interpreted-text" role="ref">IntegerColumn&lt;databaserecord.integercolumn&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Integer&lt;/api/data_types/integer&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">Integer&lt;/api/data_types/integer&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td><code class="interpreted-text" role="ref">PictureColumn&lt;databaserecord.picturecolumn&gt;</code></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Picture&lt;/api/graphics/picture&gt;</code></td>
<td></td>
</tr>
<tr class="even">
<td></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td><code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">Picture/api/graphics/picture&gt;</code></td>
<td></td>
</tr>
<tr class="odd">
<td></td>
<td>Name As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code></td>
<td>format As <code class="interpreted-text" role="doc">String&lt;/api/data_types/string&gt;</code> = <code class="interpreted-text" role="doc">Picture.FormatPNG/api/graphics/picture&gt;</code>, quality As <code class="interpreted-text" role="doc">Integer&lt;/api/data_types/integer&gt;</code> = <code class="interpreted-text" role="doc">Picture.QualityDefault&lt;/api/graphics/picture&gt;</code>, <code class="interpreted-text" role="doc">Assigns&lt;/api/language/assigns&gt;</code> value As <code class="interpreted-text" role="doc">Picture&lt;/api/graphics/picture&gt;</code></td>
<td></td>
</tr>
</tbody>
</table>

## Method descriptions

<div id="databaserecord.blobcolumn">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.BlobColumn

**BlobColumn**(Name As `String</api/data_types/string>`) As `String</api/data_types/string>`

Gets the blob value for the specified field. The parameter is the column name. Use BLOB columns to work with binary data such as pictures or files.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.BlobColumn

**BlobColumn**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>`)

Sets the specified field to the specified BLOB. The parameter is the column name. Use BLOB columns to work with binary data such as pictures or files.

<div id="databaserecord.booleancolumn">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.BooleanColumn

**BooleanColumn**(Name As `String</api/data_types/string>`) As `Boolean</api/data_types/boolean>`

Gets the Boolean value for the column Name.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.BooleanColumn

**BooleanColumn**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `Boolean</api/data_types/boolean>`)

Sets the Boolean value for the column Name.

<div id="databaserecord.column">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.Column

**Column**(Name As `String</api/data_types/string>`) As `String</api/data_types/string>`

Gets the String value for the column at position *Index*. The first index is 1.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.Column

**Column**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>`)

Gets the String value for the column at position *Index*. The first index is 1.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.Column

**Column**(Index As `Integer</api/data_types/integer>`) As `String</api/data_types/string>`

Gets the String value for the column at position *Index*. The first index is 1.

Creates a new row in the team table:

``` xojo
Dim row As New DatabaseRecord

row.Column("Name") = "Penguins"
row.Column("Coach") = "Bob Roberts"
row.Column("City") = "Boston"

myDB.InsertRecord("Team", row)

If myDB.Error Then
  MsgBox("DB Error: " + myDB.ErrorMessage)
End If
```

<div id="databaserecord.currencycolumn">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.CurrencyColumn

**CurrencyColumn**(Name As `String</api/data_types/string>`) As `Currency</api/data_types/currency>`

Gets the Currency value for the column Name.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.CurrencyColumn

**CurrencyColumn**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `Currency</api/data_types/currency>`)

Sets the Currency value for the column Name.

<div id="databaserecord.datecolumn">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.DateColumn

**DateColumn**(Name As `String</api/data_types/string>`) As `Date</api/deprecated/date>`

Gets the Date value for the column Name.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.DateColumn

**DateColumn**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `Date</api/deprecated/date>`)

Sets the Date value for the column Name.

<div id="databaserecord.doublecolumn">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.DoubleColumn

**DoubleColumn**(Name As `String</api/data_types/string>`) As `Double</api/data_types/double>`

Gets the Double value for the column Name.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.DoubleColumn

**DoubleColumn**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `Double</api/data_types/double>`)

Sets the Double value for the column Name.

<div id="databaserecord.fieldcount">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.FieldCount

**FieldCount** As `Integer</api/data_types/integer>`

Returns the number of fields in the <span class="title-ref">DatabaseRecord</span>.

Creates a new row in the team table:

``` xojo
Dim row As New DatabaseRecord

row.Column("Name") = "Penguins"
row.Column("Coach") = "Bob Roberts"
row.Column("City") = "Boston"

myDB.InsertRecord("Team", row)

If myDB.Error Then
  MsgBox("DB Error: " + myDB.ErrorMessage)
Else
  MsgBox("Fields added: " + Str(row.FieldCount)
End If
```

<div id="databaserecord.fieldname">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.FieldName

**FieldName**(idx As `Integer</api/data_types/integer>`) As `String</api/data_types/string>`

Returns the name of the field in the <span class="title-ref">DatabaseRecord</span> specified by *idx*. The fields are in a 0-based array.

Creates a new row in the team table:

``` xojo
Dim row As New DatabaseRecord

row.Column("Name") = "Penguins"
row.Column("Coach") = "Bob Roberts"
row.Column("City") = "Boston"

myDB.InsertRecord("Team", row)

If myDB.Error Then
  MsgBox("DB Error: " + myDB.ErrorMessage)
Else
  MsgBox("Field 2 Name: " + row.FieldName(1))
End If
```

<div id="databaserecord.fieldtype">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.FieldType

**FieldType**(idx As `Integer</api/data_types/integer>`) As `Integer</api/data_types/integer>`

Returns the type of the field in the <span class="title-ref">DatabaseRecord</span> specified by *idx*. The fields are in a 0-based array. The field type codes are the same as those returned by `FieldSchema<database.tablecolumns>`.

This example displays the field type of the third field in the <span class="title-ref">DatabaseRecord</span> *rec*.

``` xojo
MsgBox(Str(rec.FieldType(2)))
```

<div id="databaserecord.int64column">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.Int64Column

**Int64Column**(Name As `String</api/data_types/string>`) As `Int64</api/data_types/additional_types/int64>`

Gets the Int64 value for the column Name.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.Int64Column

**Int64Column**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `Int64</api/data_types/additional_types/int64>`)

Sets the Int64 value for the column Name.

<div id="databaserecord.integercolumn">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.IntegerColumn

**IntegerColumn**(Name As `String</api/data_types/string>`) As `Integer</api/data_types/integer>`

Gets the Integer value for the column Name.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.IntegerColumn

**IntegerColumn**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `Integer</api/data_types/integer>`)

Sets the Integer value for the column Name.

<div id="databaserecord.picturecolumn">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DatabaseRecord.PictureColumn

**PictureColumn**(Name As `String</api/data_types/string>`) As `Picture</api/graphics/picture>`

Sets the Picture value for the column *Name* with the specified *format* and *quality*.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.PictureColumn

**PictureColumn**(Name As `String</api/data_types/string>`, `Assigns</api/language/assigns>` value As `Picture</api/graphics/picture>`)

Sets the Picture value for the column *Name* with the specified *format* and *quality*.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

DatabaseRecord.PictureColumn

**PictureColumn**(Name As `String</api/data_types/string>`, format As `String</api/data_types/string>`=`Picture.FormatPNG</api/graphics/picture>`, quality As `Integer</api/data_types/integer>` = `Picture.QualityDefault</api/graphics/picture>`, `Assigns</api/language/assigns>` value As `Picture</api/graphics/picture>`)

Sets the Picture value for the column *Name* with the specified *format* and *quality*.

For most <span class="title-ref">databases using</span> the BlobColumn method is preferred.

Creates a new row in the team table:

``` xojo
Dim row As New DatabaseRecord

row.Column("Name") = "Penguins"
row.Column("Coach") = "Bob Roberts"
row.Column("City") = "Boston"
row.PictureColumn("Logo") = Canvas1.Backdrop

myDB.InsertRecord("Team", row)

If myDB.Error Then
  MsgBox("DB Error: " + myDB.ErrorMessage)
End If
```

## Notes

Assignments via the DateColumn method store the time as well as the date to support the SQL TimeStamp and Time field types (as well as Date). Note that if the date part is January 1, 0001, then this is converted to SQL as only a time (e.g., "18:54:00"), whereas if the date is anything else, it converts to SQL in full form (e.g., "2000-5-30 18:54:00").

Not all field types supported by the <span class="title-ref">DatabaseRecord</span> class are supported by all data sources. Check whether your data source supports the data type returned by the method you are using.

Use the BlobColumn method to save binary data (such as pictures or files) to the table.

## Sample code

Creates a new row in the team table:

``` xojo
Dim row As New DatabaseRecord

row.Column("Name") = "Penguins"
row.Column("Coach") = "Bob Roberts"
row.Column("City") = "Boston"

myDB.InsertRecord("Team", row)

If myDB.Error Then
  MsgBox("DB Error: " + myDB.ErrorMessage)
End If
```

## Compatibility

All project types on all supported operating systems.

## See also

`DatabaseRow</api/databases/databaserow>` parent class; `Database</api/databases/database>`, `DatabaseColumn</api/databases/databasecolumn>`, `MySQLCommunityServer</api/databases/mysqlcommunityserver>`, `ODBCDatabase</api/databases/odbcdatabase>`, `OracleDatabase</api/deprecated/oracledatabase>`, `PostgreSQLDatabase</api/databases/postgresqldatabase>`, `RowSet</api/databases/rowset>` classes.
