sx_Recall

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_Recall

VB Declaration

Declare Sub sx_Recall Lib "Apollo9.dll" ()

C Declaration

VOID FAR PASCAL sx_Recall (VOID);

Description

Recalls a record that has been logically deleted. If the current record has been logically deleted with sx_Delete, it may be recalled using this function.

 

Note that if sx_SetDeleted is True, deleted records are only visible to the sx_Go function. All other record movement functions ignore deleted records when sx_SetDeleted is True.

 

Once a file has been packed or zapped, recalls are no longer possible.

VB Example

' Toggle deletion flag

Sub ButtonDelete_Click ()

If sx_Deleted() Then

ButtonDelete.Caption = "Delete"

sx_Recall

DeleStat.Value = -sx_Deleted()

Else

ButtonDelete.Caption = "Recall"

sx_Delete

DeleStat.Value = -sx_Deleted()

End If

End Sub

C Example

void CNamesForm::OnButtonDelete()

{

if (sx_Deleted())

{

m_delete->SetStrProperty("Caption", "Delete");

sx_Recall();

}

else

{

m_delete->SetStrProperty("Caption", "Recall");

sx_Delete();

}

}

See Also

sx_Delete, sx_Deleted, sx_Pack, sx_SetDeleted, sx_Zap