Hi,

I got the identifier redeclared error message from the compiler.  I know
that I only have one declaration in frpchecklist.c (in the function itself).
I am going to include the function AppSeekRecord() and some codes from the
calling function.  Please help.

* * * * *       *       *
Error   : identifier 'AppSeekRecord(...)' redeclared
was declared as: 'int (...)'
now declared as: 'unsigned char (unsigned short *, short, short)'
FRPChecklist.c line 677   {

Error   : undefined identifier 'indexP'
FRPChecklist.c line 678    DmSeekRecordInCategory (ChecklistDB, indexP,
offset, direction, CurrentCategory);

* * * * *       *       *
static Boolean AppSeekRecord (UIntPtr indexP, Int offset, Int direction)
{
        DmSeekRecordInCategory (ChecklistDB, indexP, offset, direction,
CurrentCategory);
        if (DmGetLastErr()) return (false);
        
        return (true);
}

* * * * *       *       *
static void MainFormUpdateScrollButtons (void)
{
        SWord           row;
        Word upIndex;
        Word downIndex;
        Word recordNum;
        Boolean scrollableUp;
        Boolean scrollableDown;
        FormPtr frm;
        TablePtr table;

        frm = FrmGetActiveForm ();

        // Update the button that scroll the list.
        //
        // If the first record displayed is not the fist record in the
category,
        // enable the up scroller.
        recordNum = TopVisibleRecord;
        scrollableUp = AppSeekRecord (&recordNum, 1, dmSeekBackward);

Elizabeth Chang
ISSI Consulting Group
[EMAIL PROTECTED]


Reply via email to