Update URL Records
When used in conjunction with UFNDBEG and UFNDNXT, the USTORE API is used to update an existing URL record. First, find the URL, then set the new values, and then perform USTORE.
When
D<Prefix>@U@DTUSR
= 1, the program can change the
D<Prefix>@U@CRTDT
,
D<Prefix>@U@CRTTM
,
D<Prefix>@U@MODDT
, and/or
D<Prefix>@U@MODTM
fields and the program supplied values will be written to the database. If
D<Prefix>@U@DTUSR
is not 1, then the
D<Prefix>@U@MODDT
and
D<Prefix>@U@MODTM
fields will be set to the current system date and time before the record is written to the database.
Programming Example
This code changes the value of the
D<Prefix>@U@TYPE
field of the URL attachments associated with COMPANY 1000 from "H" to "P".
|