TSL语言基础
>
Object TSL
>
TSL内置对象使用大全
>
Pop3对象
>
Pop3对象的方法
Top
复制链接
简述
取邮件的前N行内容。
定义
Top(MsgId:Integer;Var Result:String;MaxLines:Integer):Boolean;
参数
名称
类型
说明
MsgId
integer
指定邮件序号
Result
String
指定邮件内容返回值
MaxLines
integer
获取指定邮件前MaxLines行的内容
返回值
Boolean
执行成功返回1,否则返回0
范例
获取指定邮件前3行内容
//创建pop3对象
pop3Obj := new pop3("pop3.tinysoft.com.cn","username","password");
ret := pop3Obj.Top(1,msg,3);
if ret then return msg;
else return "获取指定邮件前3行内容失败!";
//结果:
相关
Login
SendCmd
Connect
Disconnect
DisconnectNotifyPeer
CheckMessages
KeepAlive
Reset
Delete
Top
RetrieveMsgSize
RetrieveMailBoxSize
Retrieve
RetrieveHeader
RetrieveRaw
UIDL
CAPA
FAQ/知识库链接
Q:OP_GetOptionChain函数取标的对应的期权,为什么有些标的的期权获取不到
Q:SELECTOPT(Options)
Q:程序执行中提示:Another user logined stoped your application!