DatabaseRecord.DoubleColumn

From Xojo Documentation

Revision as of 13:53, 11 July 2019 by Gperlman (talk | contribs)
Method

DatabaseRecord.DoubleColumn(Name As String) As Double

Supported for all project types and targets.

Gets the Double value for the column Name.


Method

DatabaseRecord.DoubleColumn(Name As String, Assigns value As Double)

Supported for all project types and targets.

Sets the Double value for the column Name.

Sample Code

Creates a new row in the team table:

Dim row As New DatabaseRecord

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

myDB.InsertRecord("Team", row)

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