[align=center]RSL.Dll类帮助[/align] RSL.RSLReader 方法Read(Str As String, IsFile As Boolean) As ItemProperty 这是Reader读取RSL文件的第一步。 要求赋与Str的是RSL文件地址或RSL文件内容。如果是RSL文件地址,那么IsFile=True,否则IsFile=False。 返回True代表读取成功;False代表读取失败。如果读取失败,您可以使用RSLScanner的Scan方法对该文件或字符进行错误检查。 只读属性RSLName As String 方法Read返回True后,访问该属性可以获得RSL文件名称。 只读属性RSLType As Integer 方法Read返回True后,访问该属性可以获得RSL文件类型。 只读属性RSLInfo As String 方法Read返回True后,访问该属性可以获得RSL文件信息。 只读属性RSLWebSize As String 方法Read返回True后,访问该属性可以获得RSL文件提供网站。 只读属性ItemCount As Integer 方法Read返回True后,访问该属性可以获得RSL文件内记录总数。 方法ReadItem(Index As Integer) As Boolean 方法Read返回True后,通过该方法读取指定记录的所有属性,Index为记录索引号(RSL文件记号从1开始)。返回True代表读取成功;False代表读取失败(失败原因一般为记录索引号不存在)。 属性PageItems As Integer 属性PageItems为分页读取模式指定每页显示的记录数。 只读属性PageCount As Integer 属性PageItems赋值后,访问该属性能够获得分页读取模式总页数。 方法ReadItem(Page As Integer, Number As Integer) As ItemProperty 属性PageItems赋值后,可以使用该方法以分页读取模式读取记录。Page为页数, Number为该页记录号号数。 子类 ItemProperty 在使用读取Item方法后,会获得此子类。里面有Name只读属性、Summary只读属性、Content属性。分别代表Item的名称、简介、内容。 RSL.Creater 方法Clean() 清除已添加的记录。 方法AddItem(Name As String, Summary As String, Content As String) 添加记录。Name为记录名称,Summary为记录简介,Content为记录内容。 方法RemoveItem(Index As Integer) 删除指定索引号的记录。 方法SetRSL(Name As String,Type As RSLTypeExample,Info As String, WebSize As String) 设置RSL文件基本信息。 方法SaveRSL(ByVal FileName As String) As Boolean 保存RSL文件到指定地址。成功返回True,失败返回False。 RSL.Commander 方法Open(FileName As String) As Boolean 打开RSL文件。FileName为RSL文件地址。返回True代表读取成功;False代表读取失败。如果打开失败,您可以使用RSLScanner的Scan方法对该文件或字符进行错误检查。 只读属性ItemCount As Integer 方法Open返回True后,访问该属性可以获得读取的记录的内容。 方法AddItem(Name As String, Summary As String, Content As String) As Boolean 添加新记录。Name为记录名称,Summary为记录简介,Content为记录内容。 方法RemoveItem(Index As Integer) As Boolean 删除指定的记录。Index为要删除的记录索引号。 方法UpDateItem(Index As Integer, Name As String, Summary As String, Content As String) As Boolean 更新指定的记录。Name为记录名称,Summary为记录简介,Content为记录内容,Index为要删除的记录索引号。 RSL.Scanner 方法Scan(Str As String, IsFile As Boolean) As Integer 检查RSL文件。Str为RSL文件地址或RSL文件内容。如果是RSL文件地址,那么IsFile=True,否则IsFile=False。返回错误号。 只读属性ErrItem As Integer 方法Scan后,如果错误类型为Item结构错误,该属性会返回错误的Item索引号。