9.0

216
Param definition
[ [Optional] [ | ByVal | ByRef ] | ParamArray ] param[type][( )] [As type] [ = defaultvalue ]
The param
receives the value of the associated expression in the Declare, Sub, Function or Property call. (See
arglist
.)
An Optional param may be omitted from the call. It may also have a defaultvalue. The parameter receives the
default value if a value is not specified by the call. If the default value is omitted, the parameter is a Variant
and no value is specified in the call then IsMissing
will return True.
All parameters following an Optional parameter must also be Optional.
ParamArray may be used on the final param. It must be an array of Variant type. It must not follow any Optional
parameters. The ParamArray receives all the expressions at the end of the call as an array. If
LBound
(param) > UBound(param) then the ParamArray didn't receive any expressions.
If the param is not ByVal and the expression is merely a variable then the param is a reference to that variable
(ByRef). (Changing param
changes the variable.) Otherwise, the parameter variable is local to the
procedure
, so changing its value does not affect the caller.
Use param( ) to specify an array parameter. An array parameter must be referenced and can not be passed by
value. The bounds of the parameter array are available via LBound( )
and UBound( ).
Picture Dialog Item Definition
Syntax
Picture X, Y, DX, DY, FileName$, Type[, .Field]
Group
User Dialog
Description
Define a picture item. The bitmap is automatically sized to fit the item's entire area.
Parameter Description
X This number value is the distance from the left ed
g
e of the dialo
g
box. It is measured
in 1/8ths of the average character width for the dialog's font.
Y This number value is the distance from the to
p
ed
g
e of the dialo
g
box. It is measured
in 1/12ths of the character height for the dialog's font.
DX This number value is the width. It is measured in 1/8ths of the average character
width for the dialog's font.
DY This number value is the hei
g
ht. It is measured in 1/12ths of the character hei
g
ht fo
r
the dialog's font.
FileName$ The value of this string is the .BMP file shown in the picture control.
Type This numeric value indicates the type of bitmap used. See below.
Field This identifier is the name of the field. The dialogfunc receives this name as string. I
f
this identifer is omitted then the first two words of the title are used.
Type Effect