Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 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
Default Arrays

Guys please help me , i can't really find the simplest method on how to call for a function

Reply With Quote
  #2 (permalink)  
Old October 23rd, 2008, 07:34 AM
Friend of Wrox
Points: 1,104, Level: 13
Points: 1,104, Level: 13 Points: 1,104, Level: 13 Points: 1,104, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2008
Location: Indianapolis, IN, USA.
Posts: 224
Thanks: 0
Thanked 30 Times in 29 Posts
Default

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)
Reply With Quote
  #3 (permalink)  
Old October 23rd, 2008, 04:52 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
Thanks: 3
Thanked 141 Times in 140 Posts
Default

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.
Reply With Quote
  #4 (permalink)  
Old October 23rd, 2008, 05:00 PM
Friend of Wrox
Points: 1,104, Level: 13
Points: 1,104, Level: 13 Points: 1,104, Level: 13 Points: 1,104, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2008
Location: Indianapolis, IN, USA.
Posts: 224
Thanks: 0
Thanked 30 Times in 29 Posts
Default

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)
Reply With Quote
  #5 (permalink)  
Old August 30th, 2010, 06:48 AM
Authorized User
 
Join Date: Aug 2010
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
Default thanks

thanks for sharing information
__________________
free web directory :yourowndir.com
seo service india : sbglobal.info
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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



All times are GMT -4. The time now is 07:21 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.