p2p.wrox.com 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 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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 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
Default Arrays

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 23rd, 2008, 08:34 AM
Authorized User
Points: 317, Level: 6
Points: 317, Level: 6 Points: 317, Level: 6 Points: 317, Level: 6
Activity: 17%
Activity: 17% Activity: 17% Activity: 17%
 
Join Date: Sep 2008
Location: Indianapolis, IN, USA.
Posts: 80
Thanks: 0
Thanked 6 Times in 6 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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old October 23rd, 2008, 05:52 PM
Friend of Wrox
Points: 4,805, Level: 29
Points: 4,805, Level: 29 Points: 4,805, Level: 29 Points: 4,805, Level: 29
Activity: 38%
Activity: 38% Activity: 38% Activity: 38%
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,323
Thanks: 3
Thanked 70 Times in 69 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old October 23rd, 2008, 06:00 PM
Authorized User
Points: 317, Level: 6
Points: 317, Level: 6 Points: 317, Level: 6 Points: 317, Level: 6
Activity: 17%
Activity: 17% Activity: 17% Activity: 17%
 
Join Date: Sep 2008
Location: Indianapolis, IN, USA.
Posts: 80
Thanks: 0
Thanked 6 Times in 6 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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help With Arrays Crippy Ruby 1 July 24th, 2008 12:36 PM
arrays ozPATT Excel VBA 2 November 4th, 2005 06:11 AM
Arrays: Adding values from multiple arrays seanklosky ASP E-commerce 0 June 6th, 2005 06:17 PM
Multidemmesional Arrays OR arrays gmoney060 Classic ASP Basics 3 November 1st, 2004 03:42 PM
Arrays tajin Excel VBA 0 June 20th, 2004 10:07 AM



All times are GMT -4. The time now is 03:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc