L'objet de jet d'objet de donn�es d'ActiveX (AGITATION) permet d'acc�der � un jet des donn�es des textes ou des donn�es binaires. Par l'acc�s, nous voulons dire la capacit� d'�crire, lisons, et contr�lons le jet.
Une zone-tampon dont la teneur du jet peut �tre lue. La nature du contenu d'un jet pourrait �tre texte ou type binaire d'information, bien que la documentation de Microsoft mentionne juste la partie binaire.
Nous pouvons avons obtenu un objet de jet par trois mani�res :
1. D'un URL se dirigeant � un objet contenant des donn�es des textes ou des donn�es binaires. Cet objet peut �tre un document simple, un objet record repr�sentant un document structur�, ou une chemise.
2. En ouvrant le jet d'AGITATION de d�faut objecter associ� � un objet record. Vous pouvez obtenir le jet de d�faut li� � l'objet record quand le disque est ouvert, pour �liminer un aller-retour juste pour ouvrir le jet.
3. Par instantiating un objet de jet d'AGITATION. Ces objets de jet peuvent �tre employ�s pour stocker des disques ou des donn�es pour les buts de notre application. � la diff�rence d'un jet li� � l'URL, ou du jet de d�faut des disques, instantiated le jet n'a aucune association avec une source fondamentale par d�faut.
Employer l'objet de jet d'AGITATION pour acc�der au jet d'un article.
Par exemple :
Dim Stm As ADODB.Stream
Dim Rec as New ADODB.Record
Dim Conn as New ADODB.Connection
Dim Stm2 as New ADODB.Stream
Dim Url As String
'...
Conn.Close
Rec.Close
Stm.Close
Stm2.Close
Set Conn = Nothing
Set Rec = Nothing
Set Stm = Nothing
Set Stm2 = Nothing
Propri�t�s d'objet de Stram d'AGITATION.
Property
Description
CharSet
Sets or returns a value that specifies into which character
set the contents are to be translated. This property is only used with text
Stream objects (type is adTypeText)
EOS
Returns whether the current position is at the end of the
stream or not
LineSeparator
Sets or returns the line separator character used in a text
Stream object
Mode
Sets or returns the available permissions for modifying
data
Position
Sets or returns the current position (in bytes) from the
beginning of a Stream object
Size
Returns the size of an open Stream object
State
Returns a value describing if the Stream object is open or
closed
Type
Sets or returns the type of data in a Stream object
M�thodes d'objet de Stram d'AGITATION.
Methods
Description
Cancel
Cancels an execution of an Open call on a Stream object
Close
Closes a Stream object
CopyTo
Copies a specified number of characters/bytes from one
Stream object into another Stream object
Flush
Sends the contents of the Stream buffer to the associated
underlying object
LoadFromFile
Loads the contents of a file into a Stream object
Open
Opens a Stream object
Read
Reads the entire stream or a specified number of bytes from
a binary Stream object
ReadText
Reads the entire stream, a line, or a specified number of
characters from a text Stream object
SaveToFile
Saves the binary contents of a Stream object to a file
SetEOS
Sets the current position to be the end of the stream (EOS)
SkipLine
Skips a line when reading a text Stream
Write
Writes binary data to a binary Stream object
WriteText
Writes character data to a text Stream object
Mots-cl�s : Objet de jet d'AGITATION, objet de jet d'adodb, objet de base visuel, agitation de base visuelle, filet de l'agitation asp, serveur de l'agitation SQL