Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / July 2007

Tip: Looking for answers? Try searching our database.

Arrays

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
louciv - 17 Jul 2007 19:02 GMT
How do I set an array variable to a function?
Here is a sample of my code:

Dim testWS as new clsws_activeinsurance
Dim temp() as struct_mapitem

temp() = testWS.wsm_activeinsurance("MC12345","UUID")

The function is supposed to bring back a two-dimensional array. How do I set
my variable for this array?
The function that I am calling is a web service from www.carrier411.com. I
cannot seem to get the dimensions of the array correctly.

Please help!!!

Thanks,
Lou
Alex Dybenko - 18 Jul 2007 11:49 GMT
hi,
you can try to get a variant-type variable first and then assign array-type
variable to it

try to search for array at www.freevbcode.com

Signature

Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

> How do I set an array variable to a function?
> Here is a sample of my code:
[quoted text clipped - 13 lines]
> Thanks,
> Lou
pietlinden@hotmail.com - 19 Jul 2007 03:26 GMT
> How do I set an array variable to a function?
> Here is a sample of my code:
[quoted text clipped - 13 lines]
> Thanks,
> Lou

use a variant.

dim varMyArray as variant
varMyArray = SomeFunctionThatReturnsAnArray()
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.