How to declare variable containing character limiting to 1000 bytes in vb6

后端 未结 3 980
余生分开走
余生分开走 2021-01-25 07:11

How to declare variable containing character limiting to 1000 bytes in vb6

3条回答
  •  旧巷少年郎
    2021-01-25 08:00

    This is a rough approximation. It assumes you are flexible with that 1000 byte limit.

    Private mData As String
    Public Property Let Data(value As String)
    
        If Len(value) <= 1000 Then
            mData = value
        Else
            'Do whatever '
        End If
    
    End Property
    

提交回复
热议问题