1. Difference between following
condel :- Use condel to delete one or more items from a container.
confind :- Use confind to locate a sequence of items in a container.
conins :- Use conins to insert some items into a container.
conlen :- Use conlen to find out how many items there are in a container.
connull :- Use connull to explicitly dispose of the contents of a container.
conpeek :- Use conpeek to extract an item from a container, and to convert it into another data type
conpoke :- Use conpoke to replace (poke) an item in a container.
public void postJournal(container _journalNum)
{
int cnt;
LedgerjournalCheckPost ledgerjournalCheckPost;
cnt = 1;
while(cnt <= conLen(_journalNum))
{
try
{
if(cnt > conLen(_journalNum))
{
break;
}
ledgerjournalTable = LedgerjournalTable::find(conPeek(_journalNum,cnt));
ledgerjournalCheckPost = LedgerjournalCheckPost::newLedgerJournalTable(ledgerjournalTable,NoYes::Yes);
ttsBegin;
ledgerjournalCheckPost.run();
this.updateStagingDBRecRead(conPeek(_journalNum,cnt),NoYes::Yes);
ttsCommit;
cnt++;
}
catch
{
this.updateStagingDBRecRead(conPeek(_journalNum,cnt),NoYes::No);
cnt++;
continue;
}
}
}
No comments:
Post a Comment