ButtonInsertJob#includeapdefap.hvoidOnClick(char*lpszPictureName,char*lpszObjectName,char*lpszPropertyName){if(uaUtilityEnumRecords(JobData,NULL,NULL,InsertJobCB,NULL))printf(InsertO.K.\r\n);elseprintf(Insertfailed!\r\n);}FunctionInsertJobCB#includeapdefap.hBOOLInsertJobCB(UAHARCHIVE*phArchive,void*pUserData){BOOLrc=TRUE;//Returncodechar*szProductName=GetTagCharWait(ProductName);//readnameofproductlonglPartsToProd=(long)GetTagWord(BlanksToProduce);//readnumberofpartsif(!uaArchiveSetFieldValueString(*phArchive,1,szProductName)||//writeproductnametoarchive!uaArchiveSetFieldValueLong(*phArchive,2,lPartsToProd))//writenumberofpartstoarchive{printf(InsertJobCB:erroronwritingtorecord\r\n);rc=FALSE;}else{if(!uaArchiveInsert(*phArchive))//insertnewlineinarchive{printf(InsertJobCB:erroronupdatingarchive\r\n);rc=FALSE;}}returnrc;}