| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 344 人关注过本帖
标题:类定义错误求助
只看楼主 加入收藏
astralrider
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2014-5-13
收藏
 问题点数:0 回复次数:0 
类定义错误求助
Public Property Set d(ByVal sTimeDate As String) 本行编译出错“相同属性的过程定义不一致,或属性过程中包含可选参数,参数数组,或一个无效的设置最后参数”
    sTime = sTimeDate
    pitm_parsetime sTime, 0, lTIME
    piar_value iID, lTIME, ARCVALUECODE, fval, lVal
End Property

以下是类的整个定义。
Private sTAG As String, iID As Long, sDESC As String, fVAL As Single, lTIME As Long, lVal As Long, sTime As String

Public Property Set Tag(ByVal sTagName As String)
    sTAG = sTagName
    pipt_findpoint sTAG, iID
End Property
Public Property Get Tag() As String
    Tag = sTAG
End Property

Public Property Set ID(ByVal lTagID As Long)
    iID = lTagID
End Property
Public Property Get ID() As Long
    ID = iID
End Property

Public Property Set Value(ByVal fTagValue As Single)
    fVAL = fTagValue
End Property
Public Property Get Value() As Single
    Value = fVAL
End Property

Public Property Get d() As String
    pitm_formtime lTIME, sTime, Len("DD-MMM-YY HH:MM:SS")
    d = sTime
End Property
Public Property Set d(ByVal sTimeDate As String)
    sTime = sTimeDate
    pitm_parsetime sTime, 0, lTIME
    piar_value iID, lTIME, ARCVALUECODE, fval, lVal
End Property


[ 本帖最后由 astralrider 于 2014-5-13 10:38 编辑 ]
2014-05-13 09:59
快速回复:类定义错误求助
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015111 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved