9.0

112
vbSet 8 Set the property's reference
Example
Sub Main
On Error
Resume Next
CallByName Err
, "Raise", vbMethod, 1
Debug
.Print CallByName(Err, "Number", vbGet) ' 1
End
Sub
CallersLine Function
Syntax
CallersLine[(Depth)]
Group
Miscellaneous
Description
Return the caller's line as a text string.
The text format is: "[macroname|subname#linenum] linetext".
Parameter Description
Depth This inte
g
er value indicates how dee
p
into the stack to
g
et the caller's line. If De
p
th
= -1 then return the current line. If Depth = 0 then return the calling subroutine's
current line, etc.. If Depth is greater than or e
q
ual to the call stack de
p
th then a null
string is returned. If this value is omitted then the depth is 0.
Example
Sub Main
A
End
Sub
Sub
A
Debug
.Print CallersLine '"[(untitled 1)|Main# 2] A"
End
Sub
CancelButton Dialog Item Definition
Syntax
CancelButton X, Y, DX, DY[, .Field]
Group
User Dialog
Description