473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

C# Logical Layout

233 100+
I have an application that reads a directory for XML files, places them in an array, and then performs functions on the files. I want to run my logic past others to see if I am in the right direction.

-files are selected and put into an array.

for (int i=0; i<array.length; i++)
{
function 1;
function 2;
}

What I am hoping to happen is to have array[0] run through function 1 and function 2, and then have array[1] run through the functions, running each file in the array separately. Are there any giant flaws in my thinking?
Jan 8 '08 #1
3 1370
Plater
7,872 Expert 4TB
Your layout seems resonable enough.
Try it out and see how it works?
Jan 8 '08 #2
mcfly1204
233 100+
Your layout seems resonable enough.
Try it out and see how it works?
Here is my beginner question of the day:

If want to call one method from another method, what is the proper way to do so?

protected void btnSubmit_Click(object Sender, Eventargs e)
{
sendEmail();
}

protected void sendEmail(object Sender, Eventargs e)
{
//code to send email.
}
Jan 10 '08 #3
Plater
7,872 Expert 4TB
Expand|Select|Wrap|Line Numbers
  1. protected void btnSubmit_Click(object Sender, Eventargs e)
  2. {
  3. sendEmail();
  4. }
  5.  
  6. protected void sendEmail(object Sender, Eventargs e)
  7. {
  8. //code to send email.
  9. }
  10.  
The (object Sender, Eventargs e) part is in there because that function is an event handler and has to fit a certain "template" shall we say.

If you want to call your function like this:
Expand|Select|Wrap|Line Numbers
  1. sendEmail();
  2.  
Then you would have:
Expand|Select|Wrap|Line Numbers
  1. protected void sendEmail()
  2. {
  3. //code to send email.
  4. }
  5.  
I recomend you scoure the web for some beginner concepts and practice tutorials to get you more familiar with you object oriented programming (oop) and syntax
Jan 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Charles Crume | last post by:
Hello all; I have used dBASE, and other computer languages/databases, for years. They all have a logical field type. However, the version of MySQL used by the ISP hosting my site does not...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
80
by: Christopher Benson-Manica | last post by:
Of course one can get the effect with appropriate use of existing operators, but a ^^ operator would make for nice symmetry (as well as useful to me in something I'm working on). Am I the only one...
4
by: Simon Biber | last post by:
I would appreciate some critique of the code below. I have attempted to avoid the undefined behaviour that would happen if pointers went off the beginning of the arrays. The boolean logic is rather...
3
by: serge | last post by:
How do I determine which method I should use if I want to optimize the performance of a database. I took Northwind's database to run my example. My query is I want to retrieve the Employees'...
10
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it...
8
by: FuzzyLogik | last post by:
I am trying to make a logical link list, <ul> <li></li> </ul> But my sections have headers and footers. How do I do this? Example:
2
by: dbtwo | last post by:
Until today I always thought as long as you see a lot of logical reads as compared to physical reads, then you're good. But it looks like it isn't so. But doesn't logical read mean it's being read...
11
by: Dominic Vella | last post by:
I am using MS-Access2000. I can't seem to set the default values for Logical type fields. I start with Dim dbsTmp As Object ' I think it's DAO.Database Set dbsTmp =...
7
by: raylopez99 | last post by:
I have a logical drawing space much bigger than the viewport (the screen) and I'd like to center the viewport (the screen) to be at the center of the logical drawing space. After following the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.