|
|
 |
BOOK: Beginning Visual C#  | This is the forum to discuss the Wrox book Beginning Visual C#, Revised Edition of Beginning C# for .NET v1.0 by Karli Watson, David Espinosa, Zach Greenvoss, Jacob Hammer Pedersen, Christian Nagel, Jon D. Reid, Matthew Reynolds, Morgan Skinner, Eric White; ISBN: 9780764543821 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning Visual C# section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

October 22nd, 2008, 09:25 AM
|
|
Registered User
|
|
Join Date: Oct 2008
Location: BULTFONTEIN, Free State, South Africa.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Arrays
Guys please help me , i can't really find the simplest method on how to call for a function
|

October 23rd, 2008, 08:34 AM
|
|
Authorized User
|
|
Join Date: Sep 2008
Location: Indianapolis, IN, USA.
Posts: 80
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
We need more information on what you are trying to do. If you are trying to call a method within some class, the sequence is:
1) Create an instance of the object:
clsMyClass myObject = new clsMyClass();
The program now has an object named myObject that you can use in the program.
2) Call the method that is defined within the class. For example, if your function returns an int and the method is named unitsSold(), then:
clsMyClass myObject = new clsMyClass();
int sales;
sales = myObject.unitsSold();
The variable sales would now hold the units sold as determined by the unitsSold() method.
I'm only guessing that this is what you're trying to ask.
Dr. Purdum
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)
|

October 23rd, 2008, 05:52 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,323
Thanks: 3
Thanked 70 Times in 69 Posts
|
|
Because he posted in the "Array" category, I was wondering if he wanted an example of how to call a function and pass an array as an argument.
But yes, who knows, from that too-short statement.
|

October 23rd, 2008, 06:00 PM
|
|
Authorized User
|
|
Join Date: Sep 2008
Location: Indianapolis, IN, USA.
Posts: 80
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
Yep, you're probably right. I'll wait to see if he supplies additional information.
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |