You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

[ |../../index.htm#lansa/srvgudba_0750.htm]
You are here:

6.45.2 C Example

BOOL fOK;
int  iSession;
int  iCount;
char szOrderStartDate[ DATETIME_LEN ];
char szWhereClause[ 256 ];
 
fOK = LceSetSelectOptions(iSession, "*BLOCKBYRRN");
fOK = LceLocalDateTimeToServer(iSession, "ORDRTIME", szOrderStartDate)
sprintf( szWhereClause, "ORDRTIME > %s", szOrderStartDate );
fOK = LceRequestSelectWhere(iSession, 
          "ORDERNUM, ORDRTIME", "ORDERS", "", szWhereClause, FALSE);
 
fOK = LceReceiveSelect(iSession, "ORDERS");
fOK = LceGetRecordCount(iSession, "ORDERS", &iRecords);
for (iCount=0; iCount < iRecords; i++)
{
        fOK = LceGetSelect(iSession, "ORDERS", iCount, "ORDERNUM, ORDRTIME");
}
[ |../../index.htm#lansa/srvgudba_0750.htm]

  • No labels