返回列表 发帖
当M=0 N<>0 O<>0 P<>0时给LABEL1.CAPTION赋值1
当M=0 N=0 O=0 P=0时给LABEL1.CAPTION赋值2
当M<>0时给LABEL1.CAPTION赋值3


If M=0 Then
    If N<>0 Then
          If O <> 0 and P<>0 Then
               LABEL1.Caption=1
          End If
    ElseIf N=0 Then
          If O=0 and P=0 Then
                LABEL1.Caption=2
          End If
    End If
Else
    LABEL1.Caption=3
End If

[ 本帖最后由 蜡烛鞭三郎 于 2007-12-15 13:42 编辑 ]

TOP

你吧程序给我算了 我改完还你..

TOP

原帖由 小明打小白 于 2007-12-16 01:09 发表
if M0 then
  label1.caption = 3
    elseif n=0 and o=0 p=0 then
       label1.caption = 2
          else
             label1.caption =1
end if



if M=0 then
  label1.caption = 3
    elseif n=0 and o=0 and p=0 then
       label1.caption = 2
          elseif n<>0 and o<>0 and p<>0
             label1.caption =1
end if

这样写吧

TOP

返回列表