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 Any guidance really appreciated
- namespace MyTestingDesktop
- {
- public partial class MyTestingDesktop : Form
- {
- public MyTestingDesktop()
- {
- InitializeComponent();
- }
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Salman BegPosted Jan 24, 2019, 10:30 PM