Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Use of ArrayList as a param to a function

Reply
Thread Tools

Use of ArrayList as a param to a function

 
 
Mark A. Deal
Guest
Posts: n/a
 
      01-11-2005
I'm having a tough time understanding this and hope that somebody can point
me in the right direction.

I am developing a web service and providing an interface such as:

Public Function AcceptRequest(byVal MyParties as Parties)

Parties needs to be defined as a collection of PartyRecords

PartyRecords is defined as such:

Public Class PartyRecord
Private FLast as String
Private FFirst as String
Public Property Last as String
Get
Return FLast
Set (byVal Value as String)
FLast = String
End Set
End Property

Public Property First as String
Get
Return FFirst
Set (byVal Value as String)
FFirst = String
End Set
End Property

My question is: How do I define Parties as a collection of PartyRecords?

I know that this is simple, but I cannot figure it out!

TIA

--
Mark A. Deal
Document & Data Solutions, LLC
http://www.docsol.com
Time Matters AIC
HotDocs Certified Consultant
GhostFill Certified Consultant


 
Reply With Quote
 
 
 
 
Dilip Krishnan
Guest
Posts: n/a
 
      01-12-2005
Hello Mark,
Just have it as an array of partyrecord

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> I'm having a tough time understanding this and hope that somebody can
> point me in the right direction.
>
> I am developing a web service and providing an interface such as:
>
> Public Function AcceptRequest(byVal MyParties as Parties)
>
> Parties needs to be defined as a collection of PartyRecords
>
> PartyRecords is defined as such:
>
> Public Class PartyRecord
> Private FLast as String
> Private FFirst as String
> Public Property Last as String
> Get
> Return FLast
> Set (byVal Value as String)
> FLast = String
> End Set
> End Property
>
> Public Property First as String
> Get
> Return FFirst
> Set (byVal Value as String)
> FFirst = String
> End Set
> End Property
>
> My question is: How do I define Parties as a collection of
> PartyRecords?
>
> I know that this is simple, but I cannot figure it out!
>
> TIA
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML::Template->param() : You gave me an odd number of parameters to param()! Dave Perl Misc 5 04-26-2011 02:44 AM
Overload by deriv class param; call w base class param ectoplasm C++ 12 07-28-2005 08:20 AM
a class inherited from ArrayList, is saved to ViewState, why the type of the object read from ViewSate is not the class, but the parent, ArrayList leal ting ASP .Net 1 02-10-2004 07:45 PM
Iterate through ArrayList using an another ArrayList Saravanan Rathinavelu ASP .Net 3 08-19-2003 07:03 AM
XSLT: How to replace param name with this param's value ? Geathaa XML 2 07-30-2003 06:48 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57