Re: How to pass an dynamic array between modules?
- From: "Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdot...@xxxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 23:16:13 GMT
Pass the array by reference within the function.
Public Function fGetContentsStream(ByRef arrayOLE() As Byte, _
FileExtension As String, _
Optional FileNamePackage As String = "") As Boolean
Now in the function itself, you can redim the array as desired.
' Size our main array
ReDim arrayOLE(0 To UBound(arrayB))
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Troy" <TroyDDaniels@xxxxxxxxx> wrote in message
news:1175207217.677550.269590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a dilemma where I am creating a dynamic two dimensional array
and filling it with information from a .csv file. Unfortunately,
later when I try to call that information back from the array I get an
error or I don't get anything back at all. I'm not sure how to make a
dynamic array public (so to speak) so that I can call the information
back between modules or forms. Can anyone help? Thanks.
.
- Follow-Ups:
- Re: How to pass an dynamic array between modules?
- From: The Frog
- Re: How to pass an dynamic array between modules?
- References:
- Prev by Date: Re: This newsgroup interface is old ... we need a new forum.
- Next by Date: Re: This newsgroup interface is old ... we need a new forum.
- Previous by thread: Re: How to pass an dynamic array between modules?
- Next by thread: Re: How to pass an dynamic array between modules?
- Index(es):
Relevant Pages
|