FileHelpers Support Forum Index
Some dot net books
FileHelpers Support
Support, Feedback, Suggestions and More...
Get forum post via any aggregator

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

Last character eaten

 
Post new topic   Reply to topic    FileHelpers Support Forum Index -> Bugs Reports
View previous topic :: View next topic  
Author Message
InfinityDr



Joined: 16 Oct 2007
Posts: 2
Location: Belgium

PostPosted: Tue Oct 16, 2007 7:32    Post subject: Last character eaten Reply with quote

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:
Code:
203208|23082007|ORTHO|JOHNSON|EPSCARE|Knee-problem|1234567890
203208|23082007|ORTHO|JOHNSON|EPSCARE|Knee-problem|345667


class:
Code:
  [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:
Code:
FileHelperEngine<Episode> engine = new FileHelperEngine<Episode>();
engine.AfterReadRecord += engine_AfterReadRecord;
engine.ErrorManager.ErrorMode = ErrorMode.ThrowException;
Episode[] aptypeAbbreviations = engine.ReadFile(fileName);
Back to top
View user's profile Send private message MSN Messenger
InfinityDr



Joined: 16 Oct 2007
Posts: 2
Location: Belgium

PostPosted: Tue Oct 16, 2007 14:07    Post subject: Reply with quote

Same when using the wizard.
[/img]
Back to top
View user's profile Send private message MSN Messenger
Marcos
Site Admin


Joined: 07 Mar 2006
Posts: 400
Location: Bahía Blanca - Argentina

PostPosted: Tue Oct 16, 2007 19:55    Post subject: Reply with quote

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 Wink
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    FileHelpers Support Forum Index -> Bugs Reports All times are GMT
Page 1 of 1

 
  
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

Send your feedback

Source Forge Thanks Jetbrains for support us !!