Re: Call to subroutine fails to execute - no error or warning
- From: "Kevin Provance" <casey@xxxxxxxxxxx>
- Date: Fri, 20 Apr 2007 22:49:08 -0400
FWIW, one could use the Call statement in relation to a Subroutine as
indicated in the VB help files. Why one would do this I have no idea
(expect perhaps if one was obsessed with keeping arguments in parenthesis)
but it is possible.
I did find it interesting however, and I did not know this, that ByVal and
ByRef when used in conjunction with the Call statement can be used only when
calling a DLL procedure. From the VB6 help file:
argumentlist
Optional. Comma-delimited list of variables, arrays, or expressions to pass
to the procedure. Components of argumentlist may include the keywords ByVal
or ByRef to describe how the arguments are treated by the called procedure.
However, ByVal and ByRef can be used with Call only when calling a DLL
procedure.
- Kev
"Jeff Johnson" <i.get@xxxxxxxxxxx> wrote in message
news:uhMy$f2gHHA.4704@xxxxxxxxxxxxxxxxxxxxxxx
| "Kevin Provance" <casey@xxxxxxxxxxx> wrote in message
| news:OFCxjs1gHHA.208@xxxxxxxxxxxxxxxxxxxxxxx
|
| > | . . . you are going to call it with code such as this:
| > |
| > | call mysub (j as string, k as string)
| > |
| > | ?
|
| > No. You're right, that was my bad. My apologies.
|
| Whew! I thought that was something really obscure about VB I didn't know!
|
|
.
- Follow-Ups:
- Re: Call to subroutine fails to execute - no error or warning
- From: Steve Gerrard
- Re: Call to subroutine fails to execute - no error or warning
- References:
- Call to subroutine fails to execute - no error or warning
- From: oaksong
- Re: Call to subroutine fails to execute - no error or warning
- From: Kevin Provance
- Re: Call to subroutine fails to execute - no error or warning
- From: Bob Butler
- Re: Call to subroutine fails to execute - no error or warning
- From: Kevin Provance
- Re: Call to subroutine fails to execute - no error or warning
- From: Bob Butler
- Re: Call to subroutine fails to execute - no error or warning
- From: Kevin Provance
- Re: Call to subroutine fails to execute - no error or warning
- From: Rick Rothstein \(MVP - VB\)
- Re: Call to subroutine fails to execute - no error or warning
- From: Kevin Provance
- Re: Call to subroutine fails to execute - no error or warning
- From: Mike Williams
- Re: Call to subroutine fails to execute - no error or warning
- From: Kevin Provance
- Re: Call to subroutine fails to execute - no error or warning
- From: Jeff Johnson
- Call to subroutine fails to execute - no error or warning
- Prev by Date: Re: Secure FTP via VB6
- Next by Date: Re: Call to subroutine fails to execute - no error or warning
- Previous by thread: Re: Call to subroutine fails to execute - no error or warning
- Next by thread: Re: Call to subroutine fails to execute - no error or warning
- Index(es):
Relevant Pages
|