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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
October 22nd, 2008, 08: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, 07:34 AM
Friend of Wrox
Join Date: Sep 2008
Location: Indianapolis, IN, USA.
Posts: 213
Thanks: 0
Thanked 28 Times in 27 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, 04:52 PM
Friend of Wrox
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
Thanks: 3
Thanked 140 Times in 139 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, 05:00 PM
Friend of Wrox
Join Date: Sep 2008
Location: Indianapolis, IN, USA.
Posts: 213
Thanks: 0
Thanked 28 Times in 27 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)
August 30th, 2010, 06:48 AM
Authorized User
Join Date: Aug 2010
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
thanks
thanks for sharing information
__________________
free web directory :yourowndir.com
seo service india : sbglobal.info
Thread Tools
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
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Help With Arrays
Crippy
Ruby
2
March 6th, 2013 04:59 PM
arrays
ozPATT
Excel VBA
2
November 4th, 2005 05:11 AM
Multidemmesional Arrays OR arrays
gmoney060
Classic ASP Basics
3
November 1st, 2004 02:42 PM
Arrays
tajin
Excel VBA
0
June 20th, 2004 09:07 AM