您好,欢迎访问三七文档
UAHCONNECThConnect;UAHARCHIVEhArchive;//*******ConnecttoComponenteUserArchive******************************if(uaConnect(&hConnect)==FALSE){printf(uaConnecterror:%d\r\n,uaGetLastError());return;}if(hConnect==NULL){printf(HandleUAHCONNECTequalsNULL\r\n);return;}//*******ConnecttoArchiveviaName*************************************if(uaQueryArchiveByName(hConnect,TestArchive,&hArchive)==FALSE){printf(uaQueryArchiveError:%d\r\n,uaGetLastError());uaDisconnect(hConnect);return;}//*******OpensArchiv********************************************************if(uaArchiveOpen(hArchive)==FALSE){printf(uaArchiveOpenError\r\n,uaGetLastError());uaReleaseArchive(hArchive);uaDisconnect(hConnect);return;}//********Deletingone,someorallSetsinyourUserArchive************//******Deletesthosedatasetsincolumnfield1,wherethevaluesare//******biggerthan20ANDsmallerthan40if(uaArchiveDelete(hArchive,field120ANDfield140)){printf(Deletesuccessfull.\r\n);}else{printf(Deletefailed.\r\n);}//**********DeletesONEdatasetinyourUserArchive//(e.g.wherefield1hasvalue11)=removecomment-signsforcompilation/*if(uaArchiveDelete(hArchive,field1=11)){printf(Deletesuccessfull.\r\n);}else{printf(Deletefailed.\r\n);}*///*********DeletesALLdatasetsinyourUserArchive=removecomment-signsforcompilation/*if(uaArchiveDelete(hArchive,)){printf(Deletesuccessfull.\r\n);}else{printf(Deletefailed.\r\n);}*///*******CloseArchive******************************************************if(uaArchiveClose(hArchive)==FALSE){printf(erroronclosingarchive\r\n,uaGetLastError());}if(uaReleaseArchive(hArchive)==FALSE){printf(errorreleasearchive\r\n,uaGetLastError());}//*******DisconnectComponentUserArchive***************************if(uaDisconnect(hConnect)==FALSE){printf(errorondisconnection\n,uaGetLastError());return;}
本文标题:span
链接地址:https://www.777doc.com/doc-5332914 .html