当前位置:网站首页>asp adodb.stream对象的方法属性
asp adodb.stream对象的方法属性
2022-07-25 00:33: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
原文链接:https://www.mimisucai.com/teach/asp/33812.html
边栏推荐
- Multi merchant mall system function disassembly Lecture 14 - platform side member level
- [mindspore] [mode] spontaneous_ The difference between mode and graph mode
- C language program environment and preprocessing
- C language force buckle the eleventh question to find the maximum capacity of the bucket. (two methods)
- Digital signal processing synthesis matlab design of dual tone multi frequency dialing system
- Daily question 1 · 1260. Two dimensional network migration · simulation
- [mindspore] [training warning] warning when executing training code
- The model needs to use two losses_ FN, how to operate?
- If real-time intersection with line segments in online CAD drawings is realized
- Leetcode 0123. the best time to buy and sell stocks III: dynamic programming + simulation in constant space
猜你喜欢

Leetcode 1260. two dimensional grid migration: two solutions (k simulations / one step)

UART

Heap and stack in embedded development

Dynamic programming-01 knapsack rolling array optimization

Weekly summary (*66): next five years
![[untitled]](/img/70/5db8a8df63a3fd593acf7f69640698.png)
[untitled]
![[LeetCode周赛复盘] 第 83 场双周赛20220723](/img/db/c264c94ca3307d4363d3cf7f5d770b.png)
[LeetCode周赛复盘] 第 83 场双周赛20220723

Quartus:17.1版本的Quartus安装Cyclone 10 LP器件库

The new version of Alibaba Seata finally solves the idempotence, suspension and empty rollback problems of TCC mode

自动化测试系列-Selenium三种等待详解
随机推荐
px rem em
NXP i.mx6q development board software and hardware are all open source, and the schematic diagram of the core board is provided
Redis memory analysis tool RMA usage
Invitation letter | "people, finance, tax" digital empowerment, vigorously promote retail enterprises to achieve "doubling" of economies of scale
C语言学习之分支与循环语句
The use of where condition in MySQL is not equal to! = The problem that null values are filtered out occurs when in, etc
Lambda&Stream
First experience of flask
Heap and stack in embedded development
Research and Multisim Simulation of linear circuit characteristics (engineering documents attached)
WPF implements RichTextBox keyword query highlighting
[mindspore] [training warning] warning when executing training code
Add the two numbers in the linked list of the second question of C language. Ergodic method
1. Smoke test
MySQL common basic commands
Basic functions of tea
Does opengauss support using Sqlalchemy connections?
[Nuxt 3] (十)运行时配置
Weekly summary (*66): next five years
Use es to realize fuzzy search and search recommendation of personal blog