易截截图软件、单文件、免安装、纯绿色、仅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打印问题

大家好,问个vb打印问题


printer.print "dsff"
.....
....


Printer.EndDoc


打印成功后我将执行

sqlstr = "update vc_yh set pr=' 已打印 ', ......

VB------->C#

C# code:

Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Private Type GUID
Data1 As Long
......

VB與VB.NET區別

VB與VB.NET區別是什么?
除了语法差不多,几乎都是区别。

作用主要區別是什么呢?

用不用有 .net框架


引用
用不用有 .net框架


.net可否理解為Ł ......

vb 5大问题

1.用Shell "regsvr32  " & App.Path & "\abcdefghijklmnopqrstuvwxyz.ocx"注册控件,怎么不显示注册成功对话框?
2.修改d:\12345.txt属性->只读,非只读,隐藏,非隐藏
3 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号