这又是什么意思呀?

kyj826 2008-12-25 11:53:01
这又是什么意思呀?
Private Function LShift(lValue, iShiftBits)
If iShiftBits = 0 Then
LShift = lValue
Exit Function
ElseIf iShiftBits = 31 Then
If lValue And 1 Then
LShift = &H80000000
Else
LShift = 0
End If
Exit Function
ElseIf iShiftBits < 0 Or iShiftBits > 31 Then
Err.Raise 6
End If
...全文
77 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
king_woods 2008-12-25
  • 打赏
  • 举报
回复
If iShiftBits = 0 Then
如果iShiftBits的値为0 的话
就赋值LShift = lValue
并且退出该方法(Exit Function )
ElseIf iShiftBits = 31 Then
如果iShiftBits的値为31,并且 lValue 为1
If lValue And 1 Then
就赋值为LShift = &H80000000
Else
lValue 不为1的时候
赋值LShift = 0
End If
Exit Function
如果iShiftBits的値不是0到31之间的数
ElseIf iShiftBits < 0 Or iShiftBits > 31 Then
就抛出一个自定义异常为6的信息
Err.Raise 6
End If

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧