Venice
Lookup::Update
 
Updates a lookup card.
 
void Update ()
 
Remarks
Updating a record destroys the object positioning that was previously established via a SeekBy-method and the GetNext/GetPrevious-methods. The results of calling GetNext or GetPrevious after an update are not guaranteed.
 
See Also
CreateLookup
SeekBySysNum
 
Samples
 
C++
 
// Update the text of the last inserted record to 'ALIAS'
if (pLookup->SeekBySysNum (smLast, 0))
{
    pLookup->SetFieldVal (lkpfText, "ALIAS");
    pLookup->Update ();
}

C#
 
// Update the text of the last inserted record to 'ALIAS'
if (oLookup.SeekBySysNum (eSeekMode.smLast, 0))
{
    oLookup.SetFieldVal (eLookupFld.lkpfText, "ALIAS");
    oLookup.Update ();
}

VBS
 
' Update the text of the last inserted record to 'ALIAS'
If oLookup.SeekBySysNum(smLast, 0) Then
    Call oLookup.SetFieldVal(oLookup.GetFieldID("Text"), "ALIAS")
    Call oLookup.Update()    
End If

VB.NET
 
' Update the text of the last inserted record to 'ALIAS'
If oLookup.SeekBySysNum(eSeekMode.smLast, 0) Then
    oLookup.SetFieldVal(eLookupFld.lkpfText, "ALIAS")
    oLookup.Update()
End If