DatabaseField.SetString

From Xojo Documentation

Revision as of 16:49, 21 May 2019 by Gperlman (talk | contribs)
Method

DatabaseField.SetString(newValue as String)

Supported for all project types and targets.

Sets the value of the field to the passed String.

Notes

This is equivalent to using StringValue to set the value.

Sample Code

Set the string value of a column in a RecordSet:

// rs is a RecordSet with a string column called "ProductName":
rs.Edit
rs.Field("ProductName").SetString("Generic Widgets")
rs.Update

See Also

StringValue property.