Re: How to pass a 2-D array into a function?
- From: "Michael C" <mculley@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Nov 2005 13:33:31 +1100
"Gman" <nah> wrote in message
news:%23hmLuRY6FHA.1148@xxxxxxxxxxxxxxxxxxxxxxx
> You can't have an array as an argument - you have to use a variant e.g.
>
> Function GetNewValue(strVal As String, mBcdeptID As Variant) As Boolean
> if isarray(mBcdeptID) then msgbox mBcdeptID(0)
Yes you can. I see code all the time passing arrays as variants and I have
no idea why. I don't think I've ever put an array into a variant in 10
years.
Michael
.
- Follow-Ups:
- Re: How to pass a 2-D array into a function?
- From: Dmitriy Antonov
- Re: How to pass a 2-D array into a function?
- References:
- Re: How to pass a 2-D array into a function?
- From: Gman
- Re: How to pass a 2-D array into a function?
- Prev by Date: Re: MSForms in VB6.0 Project - Cannot Quit
- Next by Date: Re: How to handle a DWORD data type in VB?
- Previous by thread: Re: How to pass a 2-D array into a function?
- Next by thread: Re: How to pass a 2-D array into a function?
- Index(es):
Relevant Pages
|
Loading