Parameter Type Description
inObject Longint A handle to an object inTag String → Tag of the item to set inTable Table/Field pointer → Table whose record you want to → store
Discussion
OT PutRecord puts the current record into object in a packed format. The contents of the item can only be retrieved with OT GetRecord.
If inObject is not a valid object handle, an error is generated and OK is set to zero.
If no item in the object has the given tag, a new item is created.
If an item with the given tag exists and has the type OT Is Record (115), its value is replaced.
If an item with the given tag exists and has any other type, an error is generated and OK is set to zero.
If table is not a valid table or field pointer, or if there is no current record for the given table, an error is generated and OK is set to zero if the OT VariantItems option is not set, otherwise the existing item is deleted and a new item is created.
Warning Once a record is stored with OT PutRecord, it must be retrieved into the same table. Otherwise the results are undefined (and potentially disastrous).
See Also

