Reading RecID after Add()
James Milne
james.milne at mac.com
Mon Feb 23 21:55:00 CST 2004
On 23 Feb 2004, at 19:17, Fred.Stephenson wrote:
>
>> if not resultSet.Update() then
>> return nil
>> end if
>>
>> After the Add, I want to read the RecID generated back out. Will this
>> work
>> correctly?
>>
>> ' Read the record ID
>> recordId = resultSet.ULongField("RecID")
>>
>
> Yes ... but why the resultset.update??
Belt & braces :-)
I guess it's redundant then?
I didn't realise the RecID would be automatically populated when
you called Add(). The documentation is a bit sketchy in that regard.
--
James Milne
More information about the Valentina
mailing list