15,902,938 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by AndrewDay (Top 9 by date)
AndrewDay
30-Jan-15 9:52am
View
Thank you for your comments and link, that will be a great help in completing this assignment.
Andrew
AndrewDay
30-Jan-15 9:51am
View
Thank you for your comments, it will be a great help in completing this assignment.
Andrew
AndrewDay
12-Nov-14 16:55pm
View
See below working code based on DamithSL's excellent solution, I can now populate all 20x fields in my class. Its probably not so very elegant and I need to handle empty files etc. But I'm very happy to have got this far!
Thank You so very much :)
AndrewDay
12-Nov-14 11:53am
View
I did, the code is great. However I don't know in advance how many fields there will be. From your code would you recommend setting "lines" to 20x blank fields and overwrite with data fields found.
Is there a way to do that, or would I empty/copy var lines into an array?
AndrewDay
10-Nov-14 12:28pm
View
See me new comment directly above your last comment, which was added as a new comment rather than reply by accident, Im creating a 34x fields record made up of 200+ records of raw data upto 20x fields of an unknown length and order, with each having 14x application control fields added in the process. I want to display the raw data in a simple way and add notes, status etc for each record. I realise that you would normally take control of all data, but this is a work around hence my initial question might be unusual. I will start again tomorrow as must collect my daughter from nursey, any help will be very much appreciated
AndrewDay
10-Nov-14 12:10pm
View
Thats excellent, can I just ask. What is the default behaviour if the line in lines dosent cover all 20x fields. If its a null or empty string that would do it. Let me know please.
I have to collect my daughter and will start again tomorrow :)
AndrewDay
10-Nov-14 10:42am
View
I take it that this is a Linq query, I have no experience here.
It looks very elegant, and TOO easy!
Hope I can get this working like this, and mark you off as the solution.
Thanks in the meantime
AndrewDay
10-Nov-14 10:40am
View
Ok, I have basic data which is typically
AcctNumber,Name,Status1,Status2,Period1,Period2
ABC123,Abc Ltd,Good,Good,March,April
SOP100,Sophie Ltd,Good,Good,March,April
Execpt that there are 200+ records ordinarily and upto 20x fields which can comprise of a number of things as a "Printout" type of output. I want to add these to a 34x field class, with the last 14x fields being dates, notes and user defined statues. The first 20x fields do not change unless updated by the software that gave the "Printout", and I can update them once I know how to convert them into the class instance. The last 14x fields make the application useful, and are unconnected to the 20x fields which are for display only.
AndrewDay
10-Nov-14 10:10am
View
There are 200+ records typically.
I want to combine upto 20x string elements by position, with 14 application control fields. The 20x fields of data which have an unknown order, are displayed very simply and thats all, whilst the 14 other fields make the application usefull and capture the users comments, status changes etc, and make a simple progress chaser. The arrangement of the alien data wont change over time.
Show More