»áÔ±£º ÃÜÂ룺 ¡¡Ãâ·Ñ×¢²á | Íü¼ÇÃÜÂë | »áÔ±µÇ¼ ÍøÒ³¹¦ÄÜ£º ¼ÓÈëÊÕ²Ø ÉèΪÊ×Ò³ ÍøÕ¾ËÑË÷  
¼¼ÊõÎĵµ > VBÎĵµ > Êý¾Ý±¨±í
¹ØÓÚAdodb.Stream µÄʹÓÃ˵Ã÷
·¢±íÈÕÆÚ£º2002-09-13 00:00:00×÷ÕߣºÀ ³ö´¦£º  

×é¼þ£º"Adodb.Stream"

ÓÐÏÂÁз½·¨£º

Cancel ·½·¨

   ʹÓ÷½·¨ÈçÏÂ

   Object.Cancel

   ˵Ã÷£ºÈ¡ÏûÖ´ÐйÒÆðµÄÒì²½ Execute »ò Open ·½·¨µÄµ÷Óá£

Close ·½·¨

   ʹÓ÷½·¨ÈçÏÂ

   Object.Close

   £º¹Ø±Õ¶ÔÏñ

CopyTo ·½·¨

   ʹÓ÷½·¨ÈçÏÂ

   Object.CopyTo(destStream,[CharNumber])

   ˵Ã÷£º½«¶ÔÏñµÄÊý¾Ý¸´ÖÆ£¬destStreamÖ¸ÏòÒª¸´ÖƵĶÔÏñ£¬CharNumberΪ¿ÉÑ¡²ÎÊý£¬Ö¸Òª¸´ÖƵÄ×Ö½ÚÊý£¬²»Ñ¡ÎªÈ«²¿¸´ÖÆ¡£

Flush ·½·¨

   ʹÓ÷½·¨ÈçÏÂ

   Object.Flush

   ˵Ã÷£º

LoadFromFile ·½·¨

   ʹÓ÷½·¨ÈçÏÂ

   Object.LoadFromFile(FileName)

   ˵Ã÷:½«FileNameÖ¸¶¨µÄÎļþ×°Èë¶ÔÏñÖÐ,²ÎÊýFileNameΪָ¶¨µÄÓû§Ãû¡£

Open ·½·¨

   Ê¹Ó÷½·¨ÈçÏÂ

   Object.Open(Source,[Mode],[Options],[UserName],[Password])

   ËµÃ÷£º´ò¿ª¶ÔÏñ£¬

   ²ÎÊý˵Ã÷£ºSourece ¶ÔÏñÔ´£¬¿É²»Ö¸¶¨

 Mode Ö¸¶¨´ò¿ªÄ£Ê½£¬¿É²»Ö¸¶¨£¬¿ÉÑ¡²ÎÊýÈçÏ£º

  adModeRead =1

  adModeReadWrite =3

  adModeRecursive =4194304

  adModeShareDenyNone =16

  adModeShareDenyRead =4

  adModeShareDenyWrite =8

  adModeShareExclusive =12

  adModeUnknown =0

  adModeWrite =2

 Options Ö¸¶¨´ò¿ªµÄÑ¡Ï¿É²»Ö¸¶¨£¬¿ÉÑ¡²ÎÊýÈçÏ£º

  adOpenStreamAsync =1

  adOpenStreamFromRecord =4

  adOpenStreamUnspecified=-1

 UserName Ö¸¶¨Óû§Ãû£¬¿É²»Ö¸¶¨¡£

 Password Ö¸¶¨Óû§ÃûµÄÃÜÂë

Read ·½·¨

ʹÓ÷½·¨ÈçÏ£º

Object.Read(Numbytes)

˵Ã÷£º¶ÁÈ¡Ö¸¶¨³¤¶ÈµÄ¶þ½øÖÆÄÚÈÝ¡£

²ÎÊý˵Ã÷£ºNumbytesÖ¸¶¨µÄÒª¶ÁÈ¡µÄÕҶȣ¬²»Ö¸¶¨Ôò¶ÁÈ¡È«²¿¡£

ReadText ·½·¨

ʹÓ÷½·¨ÈçÏ£º

Object.ReadText(NumChars)

˵Ã÷£º¶ÁÈ¡Ö¸¶¨³¤¶ÈµÄÎı¾

²ÎÊý˵Ã÷£ºNumCharsÖ¸¶¨µÄÒª¶ÁÈ¡µÄÕҶȣ¬²»Ö¸¶¨Ôò¶ÁÈ¡È«²¿¡£

SaveToFile ·½·¨

ʹÓ÷½·¨ÈçÏ£º

Object.SaveToFile(FileName,[Options])

˵Ã÷£º½«¶ÔÏñµÄÄÚÈÝдµ½FileNameÖ¸¶¨µÄÎļþÖÐ

²ÎÊý˵Ã÷£ºFileNameÖ¸¶¨µÄÎļþ

  Options ´æÈ¡µÄÑ¡Ï¿É²»Ö¸¶¨£¬¿ÉÑ¡²ÎÊýÈçÏ£º

   adSaveCreateNotExist =1

   adSaveCreateOverWrite =2

SetEOS ·½·¨

ʹÓ÷½·¨ÈçÏ£º

Object.setEOS()

˵Ã÷£º

SkipLine ·½·¨

ʹÓ÷½·¨ÈçÏ£º

Object.SkipLine()

˵Ã÷£º

Write ·½·¨

ʹÓ÷½·¨ÈçÏ£º

Object.Write(Buffer)

˵Ã÷£º½«Ö¸¶¨µÄÊý¾Ý×°Èë¶ÔÏñÖС£

²ÎÊý˵Ã÷£ºBuffer Ϊָ¶¨µÄҪдÈëµÄÄÚÈÝ¡£

WriteText ·½·¨

ʹÓ÷½·¨ÈçÏ£º

Object.Write(Data,[Options])

˵Ã÷£º½«Ö¸¶¨µÄÎı¾Êý¾Ý×°Èë¶ÔÏñÖС£

²ÎÊý˵Ã÷£ºData Ϊָ¶¨µÄҪдÈëµÄÄÚÈÝ¡£

      Options дÈëµÄÑ¡Ï¿É²»Ö¸¶¨£¬¿ÉÑ¡²ÎÊýÈçÏ£º

  adWriteChar =0

  adWriteLine =1

ÓÐÏÂÁÐÊôÐÔ£º

Charset

EOS ·µ»Ø¶ÔÏñÄÚÊý¾ÝÊÇ·ñΪ¿Õ¡£

LineSeparator Ö¸¶¨»»Ðиñʽ£¬¿ÉÑ¡²ÎÊýÓÐ

 adCR  =13

 adCRLF  =-1

 adLF  =10

Mode Ö¸¶¨»ò·µ¼Óģʽ¡£

Position Ö¸¶¨»ò·µ¼Ó¶ÔÏñÄÚÊý¾ÝµÄµ±Ç°Ö¸Õë¡£

Size ·µ»Ø¶ÔÏñÄÚÊý¾ÝµÄ´óС¡£

State ·µ¼Ó¶ÔÏñ״̬ÊÇ·ñ´ò¿ª¡£

Type Ö¸¶¨»ò·µ»ØµÄÊý¾ÝÀàÐÍ£¬¿ÉÑ¡²ÎÊýΪ£º

 adTypeBinary =1

 adTypeText =2

¡¾·µ»Ø¶¥²¿¡¿ ¡¾´òÓ¡±¾Ò³¡¿ ¡¾¹Ø±Õ´°¿Ú¡¿

¹ØÓÚÎÒÃÇ / ¸øÎÒÁôÑÔ / °æȨ¾Ù±¨ / Òâ¼û½¨Òé / ÍøÕ¾±à³ÌQQȺ   
Copyright ©2003- 2024 Lihuasoft.net webmaster(at)lihuasoft.net ¼ÓÔØʱ¼ä 0.00375