Hi all, I'm a bit out of touch because my two works are keeping me really bussy.
My wife and me are waiting for a BABY =) so I'm using my free time to enjoy this unique and fantastic moment in life.
If you have any problem with the library you can try downloading the last Release Candidate version at:
Last Version: http://www.devoo.net/FileHelpers_2.2_RC1.rar
I dont have now time for a full release. Thanks for understanding my temporary absence.
Best Regards, Marcos
| View previous topic :: View next topic |
| Author |
Message |
InfinityDr
Joined: 16 Oct 2007 Posts: 2 Location: Belgium
|
Posted: Tue Oct 16, 2007 7:32 Post subject: Last character eaten |
|
|
Hello,
When reading the following file where the 2 last optional fields are not included. Then the value of episodeNumber (1234567890) is not correct.
After reading the file the value is 1234567890.
The last character is gone...
I get this behaviour only when using optional fields.
Many thanks,
file example:
203208|23082007|ORTHO|JOHNSON|EPSCARE|Knee-problem|1234567890
203208|23082007|ORTHO|JOHNSON|EPSCARE|Knee-problem|345667 |
class:
[DelimitedRecord("|")]
public class Episode {
[FieldQuoted(QuoteMode.OptionalForBoth)]
private string patientNumber;
[FieldQuoted(QuoteMode.OptionalForBoth)]
[FieldConverter(ConverterKind.Date, "ddMMyyyy")]
private DateTime episodeStartDate;
[FieldQuoted(QuoteMode.OptionalForBoth)]
private string departmentAbbrev;
[FieldQuoted(QuoteMode.OptionalForBoth)]
private string authorityAbbrev;
[FieldQuoted(QuoteMode.OptionalForBoth)]
private string episodeTypeCode;
[FieldQuoted(QuoteMode.OptionalForBoth)]
private string episodeName;
[FieldQuoted(QuoteMode.OptionalForBoth)]
private string episodeNumber;
[FieldOptional]
private string reffererCategoryAbbrev;
[FieldOptional]
private string reffererAbbrev;
...
// props
} |
Code to read the file:
FileHelperEngine<Episode> engine = new FileHelperEngine<Episode>();
engine.AfterReadRecord += engine_AfterReadRecord;
engine.ErrorManager.ErrorMode = ErrorMode.ThrowException;
Episode[] aptypeAbbreviations = engine.ReadFile(fileName); |
|
|
| Back to top |
|
 |
InfinityDr
Joined: 16 Oct 2007 Posts: 2 Location: Belgium
|
Posted: Tue Oct 16, 2007 14:07 Post subject: |
|
|
Same when using the wizard.
[/img] |
|
| Back to top |
|
 |
Marcos Site Admin

Joined: 07 Mar 2006 Posts: 400 Location: Bahía Blanca - Argentina
|
Posted: Tue Oct 16, 2007 19:55 Post subject: |
|
|
Hi there
This is a known issue you can found it in the forums, we already fix it and the changes are in the SVN, we don't have time to release the new version, but I just uploaded a version 2.2 RC1 to my devoo page here:
http://www.devoo.net/FileHelpers_2.2_RC1.rar
From there you can access to the last version with this annoying issue solved
Sorry for the problems but is hard to balance life and open source.
Cheers _________________ Happy Coding
Marcos ( www.devoo.net )
If you like the library support us with some books or monetary donations
Vote FileHelpers in Codeproject or Bookmark us in Delicious or here, Thanks ! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
FileHelpers © to Marcos Meli