Click here to Skip to main content
15,889,931 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
kendo1725-Oct-07 5:21
kendo1725-Oct-07 5:21 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
Dave Kreskowiak25-Oct-07 5:43
mveDave Kreskowiak25-Oct-07 5:43 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
kendo1725-Oct-07 6:10
kendo1725-Oct-07 6:10 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
Dave Kreskowiak25-Oct-07 6:28
mveDave Kreskowiak25-Oct-07 6:28 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
kendo1725-Oct-07 7:37
kendo1725-Oct-07 7:37 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
Dave Kreskowiak25-Oct-07 8:08
mveDave Kreskowiak25-Oct-07 8:08 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
kendo1725-Oct-07 14:04
kendo1725-Oct-07 14:04 
QuestionSystem.IO BinaryReader and Data Structures Pin
AAGTHosting24-Oct-07 8:51
AAGTHosting24-Oct-07 8:51 
I am writing a program in VB.NET. I am used to coding in PHP, but am writing a business systems program and figured it would be best to do it in VB.NET.

I am using the System.IO class to use BinaryReader and BinaryWriter to read and write my files.

What is the best way of doing this? I thought that I would use binary files so that noone can open my files and physically see the contents of them.

I want to store my data in data structures.

Here is an example of one of my data structures and a few questions.

1) Am I supposed to store binary data in a data structure?

2) Do I need to define the length of each string column in the data structure record?

3) Can I search the contents of the binary file (array?) by for an example name, column or line number?

For an example. I would like to be able to fill a list box collection with all the teacher names, meaning separating one of the column in the record from the rest.

Here is an example of my teacher structure.

Structure teachStruc<br />
        Public intTeachID As Integer<br />
        <VBFixedString(25)> Public strTeachName As String<br />
        <VBFixedString(15)> Public strTeachPhone As String<br />
        <VBFixedString(15)> Public strTeachCell As String<br />
        <VBFixedString(128)> Public strTeachAdd As String<br />
        <VBFixedString(5)> Public strTeachAptNum As String<br />
        <VBFixedString(25)> Public strTeachCity As String<br />
        <VBFixedString(3)> Public strTeachState As String<br />
        Public intTeachZip As Integer<br />
        Public dtTeachStartDate As Date<br />
        <VBFixedString(128)> Public strTeachEmail As String<br />
        <VBFixedString(128)> Public strTeachInst As String<br />
End Structure

AnswerRe: System.IO BinaryReader and Data Structures Pin
Dave Kreskowiak24-Oct-07 9:16
mveDave Kreskowiak24-Oct-07 9:16 
AnswerRe: System.IO BinaryReader and Data Structures Pin
dBrong24-Oct-07 9:24
dBrong24-Oct-07 9:24 
GeneralRe: System.IO BinaryReader and Data Structures Pin
AAGTHosting24-Oct-07 17:31
AAGTHosting24-Oct-07 17:31 
AnswerRe: System.IO BinaryReader and Data Structures Pin
Andy_L_J24-Oct-07 22:55
Andy_L_J24-Oct-07 22:55 
AnswerRe: System.IO BinaryReader and Data Structures Pin
Guffa24-Oct-07 9:48
Guffa24-Oct-07 9:48 
QuestionGetting the message ' 1004 : Unable to set the PrintGridlines property of the Pagesetup class' Pin
rswamy7024-Oct-07 8:05
rswamy7024-Oct-07 8:05 
AnswerRe: Getting the message ' 1004 : Unable to set the PrintGridlines property of the Pagesetup class' Pin
Dave Kreskowiak24-Oct-07 8:25
mveDave Kreskowiak24-Oct-07 8:25 
GeneralRe: Getting the message ' 1004 : Unable to set the PrintGridlines property of the Pagesetup class' Pin
rswamy7024-Oct-07 8:30
rswamy7024-Oct-07 8:30 
GeneralRe: Getting the message ' 1004 : Unable to set the PrintGridlines property of the Pagesetup class' [modified] Pin
Dave Kreskowiak24-Oct-07 9:10
mveDave Kreskowiak24-Oct-07 9:10 
QuestionComponent to burn data cd's Pin
dBrong24-Oct-07 6:19
dBrong24-Oct-07 6:19 
AnswerRe: Component to burn data cd's Pin
Dave Kreskowiak24-Oct-07 7:04
mveDave Kreskowiak24-Oct-07 7:04 
AnswerRe: Component to burn data cd's Pin
Christian Graus24-Oct-07 13:07
protectorChristian Graus24-Oct-07 13:07 
GeneralRe: Component to burn data cd's Pin
dBrong24-Oct-07 13:39
dBrong24-Oct-07 13:39 
GeneralRe: Component to burn data cd's Pin
Christian Graus24-Oct-07 20:55
protectorChristian Graus24-Oct-07 20:55 
GeneralRe: Component to burn data cd's Pin
dBrong25-Oct-07 3:35
dBrong25-Oct-07 3:35 
AnswerRe: Component to burn data cd's Pin
dBrong6-Nov-07 6:53
dBrong6-Nov-07 6:53 
Questionmemory corruption detection tool needed Pin
in9mar24-Oct-07 5:52
in9mar24-Oct-07 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.