471,610 Members | 1,316 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

Class property with parameters

Hi All,

Can't see a any info how to declare parameters on a class propery.
clsPiece Test = new clsPiece("AA,BB,CC,",',');

MessageBox.Show(Test.Piece(2));

Thanx,

Rob


Feb 18 '06 #1
2 1180
"Rob Willaar" <r.*******@xs4all.nl> wrote in news:Oc*************@TK2MSFTNGP15.phx.gbl:
Hi All,

Can't see a any info how to declare parameters on a class propery.
clsPiece Test = new clsPiece("AA,BB,CC,",',');

MessageBox.Show(Test.Piece(2));

Thanx,

Rob


Rob,

It's called an indexer:

http://msdn.microsoft.com/library/de...opertiespg.asp

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Feb 19 '06 #2
Thanks Chris
"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> schreef in bericht
news:Xn**********************************@207.46.2 48.16...
"Rob Willaar" <r.*******@xs4all.nl> wrote in
news:Oc*************@TK2MSFTNGP15.phx.gbl:
Hi All,

Can't see a any info how to declare parameters on a class propery.
clsPiece Test = new clsPiece("AA,BB,CC,",',');

MessageBox.Show(Test.Piece(2));

Thanx,

Rob


Rob,

It's called an indexer:

http://msdn.microsoft.com/library/de...opertiespg.asp

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/

Feb 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

42 posts views Thread by WindAndWaves | last post: by
16 posts views Thread by Yoramo | last post: by
14 posts views Thread by Paul Bromley | last post: by
6 posts views Thread by thomasp | last post: by
reply views Thread by CCCYYYY | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.