Write files, then can't load data fully

iota

New member
Joined
Jan 22, 2006
Messages
3
Programming Experience
Beginner
Hi .Net masters,


This is my first post so if irrelevent, forgive me.
-----------

I prepared a little freeware program named "My English Database" that uses no database but a text-formated files to save[or view or edit] English words and usages, reader's notes,groupname.

I write text boxes texts into edb files [ eg. please see : bin\release\edbs\*.edb]

But when I load them from files, they don't show fully at text boxes.
When I test msgbox() , they show fully.

The texts are saved in array method in order :

VB.NET:
"DB_Name","DB_Info","DB_Makers",RecordCount,CurrentRecord
"No.1"
"Keyword1"
"Usage1"
"Note1"
"Group1"
"No.2"
"Keyword2"
"Usage2"
"Note2"
"Group2"

The program actually saves like this.
When I call them into text boxes, only No. , Keyword and Usage texts appear.

I calll them by showCurrRecord Method :

VB.NET:
            If  RecordCount > 0 Then
                'Enable controls
                EnableControls(True)
                'Show current record values in controls
                Me.Text = DB_Name
                Me.txtNo.Text = RecordArray(CurrRecord).RefNo
                Me.txtTitle.Text = RecordArray(CurrRecord).Title
                Me.rtxtUsage.Text = RecordArray(CurrRecord).Usage
                Me.txtMyNote.Text = RecordArray(CurrRecord).MyNote
                Me.txtGroupName.Text = RecordArray(CurrRecord).GroupName
            End If

Please see the source code :

http://icebergz.flashband.net/.net/PEU.zip - 1196 KB or
http://icebergz.flashband.net/.net/PEU_oldver.zip - 613 KB

Please scan it first for the sake of virus safe.

Thank you extremely much for your kind help and suggestion.
 
Did you set multiline to true?

TextBox1.Multiline = True


Are they large fields? Perhaps the data is longer than the textbox and is there but just not displayed properly. Resize the text boxes, and try the multiline.
 
Back
Top