<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_Alias |
Declare Function sx_Alias Lib "Apollo9.dll"
(ByVal uiWorkArea As Integer)
As String
VOID FAR PASCAL sx_Append (VOID);
Retrieves the table alias name assigned to the current work area when the table was opened. This function is the inverse of sx_WorkArea, which retrieves the work area number associated with a passed alias name.
uiWorkArea: Retrieves the alias name assigned to this work area when the database is opened with sx_Use. If uiWorkArea is passed as zero (0), the alias name of the current work area is returned.
' Display table info
Text1.Text = sx_WorkArea(0&)
Text2.Text = sx_BaseName()
Text3.Text = sx_Alias(0)
Text4.Text = sx_BaseDate()
void CNamesForm::OnButtonAdd()
{
LONG lSaveRec;
// set switch on, setup append, and then edit
bAddMode = TRUE;
lSaveRec = sx_RecNo();
sx_GoBottom();
sx_Skip(1L);
OnButtonEdit();
// if user cancels edit, bAddMode will be FALSE
if (bAddMode)
sx_Append();
else
sx_Go(lSaveRec);
}
m_aliasbox->SetStrProperty("Text", (LPCSTR) sx_Alias(0));