易截截图软件、单文件、免安装、纯绿色、仅160KB

vb中可选参数的问题

function multi(a as integer,b as integer,optional third)
  dim n as integer
  n = a * b
if not ismissing (third) then
    n = n * thid
end if
multi = n
end function
------------------------------------------------------------------------
private sub command1_click()
dim a as integer,b as integer
dim x as integer
a = 2 : b = 3
x = multi (a , b , 2)
print x
end sub

您好,我想问一下  not ismissing (third) 是什么意思.
如果下面的实参中没有第三个参数话  not ismissing (third)又是什么意思.我是新手,谢谢大家!!!!
http://topic.csdn.net/t/20010323/13/87952.html

引用
function multi(a as integer,b as integer,optional third)
  dim n as integer
  n = a * b
if not ismissing (third) then
    n = n * thid
end if
multi = n
end function
------------------------------------------------------------------------
private sub command1_click()
dim a as integer,b as integer
dim x as integer
a = 2 : b = 3
x = multi (a , b , 2)
print x
end sub

您好,我想问一下  not ismissing (third) 是什么意思.
如果下面的实参中没有第三个参数话  not ismissing (third)又是什么意思.我是新手,谢谢大家!!!!


Function 语句

声明 F


相关问答:

vb打印问题


Printer.ScaleMode = 6
6表示毫米
Printer.PaperSize = vbPRPSA4

'初始坐标
x = 1
y = 4


'最大的线筐
Printer.DrawStyle = 0
Printer.Line (x, y)-(x + 132.5, y) ......

为何用vb api获取的窗口标题为空,而SPY++却可以

VB中callbacke function 如下:
Public Function EnumChildProc(ByVal hwnd As Long, ByVal lParam As Long) As Long
    Dim slength As Long, WndTitle As String ' title bar text length an ......

关于VB中的MDI子窗体不能以模式窗体显示

Private Sub cmdModify_Click()
    Dim iRet As Integer
    If dltUser.Text = "" Then
        MsgBox "请选择要修改的用户!", vbOKOnly ......

vb的picture控件的卸载

用vb的picture控件可以加载picture控件,例如
Set Picture1.Container = Picture3
这样就把Picture1加载到了Picture3上,那么怎么从Picture3卸载掉Picture1呢?
请各位朋友帮忙!谢谢!!
做了一个试验,将Pictur ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号