IOT Virtual Conference - Register now to book your ticket and get updates
x
CONGRATULATIONS! C# Corner Q1, 2021 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Peter Williams
2k
2
230
Best use of arrays
Jan 24 2019 11:31 AM
Hi
I have justed signed up because this seems to deal with c#.
I am using visual Studio 17 & c# and writing my own 'practice programs'
I have read many different responses to 'global arrays' and understand not the bestt way to go.
IF I have a banking data file with:-
Date DateofT
StringT Text of transaction - CCARD PAYMENT TO ASDA SUPERSTORE.....ETC
Double ValueIN = monies paid IN
Double ValueOUT = monies paid OUT
How would I best define / declare / structure this data rather than using a mult- dimensional globle type array.
I'd wish to read data into the above in one routine - say - i.e. hit Button to Read Data from File
I'd wish to interrogate data:-
all transcation between date 1 and date 2
all transactions contain ASDA
write my data to a listbox
from the listbox - to printer or file if required
sort of think mydata.DateofT, mydata.StringT etc with the nth item in each list being all part of the same initial line of data.
Hope this makes sense. My project starts like this
namespace
MyTestingDesktop
{
public
partial
class
MyTestingDesktop : Form
{
public
MyTestingDesktop()
{
InitializeComponent();
}
Any guidance really appreciated
Reply
Answers (
1
)
How to move the Table caption and Table to next page in word
Retrieve null data from SQL server into datatable