TSL语言基础 > Object TSL > TSL内置对象使用大全 > Pop3对象 > Pop3对象的方法

SendCmd    

简述

发送命令。
定义
SendCmd(Cmd:String;[Var CmdResult:String;Var RetCode:String]):Integer;
参数
名称类型说明
CmdString字符串类型,发送的命令。
CmdResultString可选参数,返回的结果串。
RetCodeString可选参数,返回的代码串。
返回Integer0表示执行成功,其它则表示失败或出现错误。
  • 范例


    ret:=CreateObject('PoP3','POP3.TINYSOFT.COM.CN',uName,password);
    r:=ret.SendCmd('UIDL 1',cr,rc);//获取指定邮件的唯一标识
    return array(r,cr,rc);
    返回:
相关