资源描述:
《vb中超长ole数据库字段的操纵方法(转2)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、VB中超长OLE数据库字段的操纵方法(转2)Author:jaklinEmail:cjl-ccy@china.comDate:9/5/200111:31:22AM一一second,howtomaketherecordingoftheDatacontroldisplaywiththeinsidecapacityoftheOLEwordsegment・ThisisaquestionthatwascitedforthefactthattheDatacontrolunitdidnotholdaverylongOLEwordsegment.Forordinaryda
2、tabasewordsection,todisplaythecontentofthefieldcontroloftheDataSourceandDataFieldattributesettoDatacontrolanddatabasefieldname,cancorrectlydisplaybytheDatacontrolswithinthefieldofdatabaserecordsCapacity.Andisusedtoshow0LE2fieldOLEcontrolsthecontentoftheDataisunabletousecontrolsare
3、usedtoaccesstheData,mustusetheaboveprovidefunctiontotake・This,thekeyproblemistomaketheOLEcontroldisplayDatacontrolisthecontentoftherecordsintheOLEfieldswithinthecapacity,itisOLEcontrolswithDatacontrolstep・一一therealitysquaremethod:ADynasetObject:tbOLEObjects・-2,intheexecutionproced
4、uresofFormLoadevent,willData1.YouassigntbOLEObjects,andrecordingthenumberofrecordsinatbOLEObjects・-3,theexecutionoftheprogram,inDatal_ValidateeventsmaketbOLEObjectsactionofexecutionwithDatal,namely:inDatalDatal_V^lidateeventsexecutableprogram,whenDatallinesofDatal.You.MoveNextorDa
5、tal・You.MoveFirst,tbOLEObjectslineswillholdtbOLEObjects・MoveNextortbOLEObjects・MoveFirst・Beforeimplementation,savewhenOLEcontrolswithinthecapacity,thenthelinesoftbOLEObjects・MoveNextortbOLEObjects・MoveFirstmethod,thentakeouttheOLEfieldswithinthevolume,insertedintotheOLEcontrolpart
6、s・-4,whenthesystemperformsaSQLstatement,Dataldirectlytoarecordingofrecordstoshow,fortbOLEObjectssaid,istoperformalookupprocess,maketothecurrentrecordandDataltbOLEObjectsacurrentrecord・Beforetheimplementation,tosavefirstwhenOLEcontrolofinternalcapacity,checkintbOLEObjectsfindDatalc
7、urrentrecords,tofind,removetheOLEthecontentsofthefieldandinsertintotheOLEcontrolparts・-herearetheimplementationoftheexamplefromapieceofsoftwarethatIwrite,itillustratestheconcreteimplementationmethod,butcannotdirectlyuse,wanttocombinetheirownprocesssequence,andothernecessarypart・Ex
8、ampleofthedatabaseisalibraryofdoc