Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   VB? (http://www.chiefdelphi.com/forums/showthread.php?t=40961)

complete 20-12-2005 08:39

VB?
 
VB Anyone?

John Gutmann 20-12-2005 08:50

Re: VB?
 
What does VB stand for? and what are you trying to ask about?

Stu Bloom 20-12-2005 08:57

Re: VB?
 
I suspect this user is looking for info on Visual Basic. However with just joining today and no information in the user's profile, along with no real quesiton being asked and the lack of any explantion I think this post/thread is suspect. I am notifying mods to review.

Timothy D. Ginn 20-12-2005 09:00

Re: VB?
 
Well, since this is the programming forum I'm assuming the original poster means Visual Basic (a Microsoft programming language).

There are certainly people around here who are familiar with the language VB (it's been a couple of years since I've written anything in it; but, if you've got a specific question I'll try my best to answer it).

Astronouth7303 21-12-2005 23:20

Re: VB?
 
Quote:

Originally Posted by complete
VB Anyone?

What about it? There's a lot to cover on the subject. Try http://en.wikipedia.org/wiki/Visual_Basic or http://en.wikipedia.org/wiki/Visual_Basic_.NET.

Please ask a specific question if you want a specific answer. We are not psychic; we can not read your mind.

complete 27-12-2005 13:35

Re: VB?
 
Yes, Visual Basic.
Let me post a few questions now.

complete 02-01-2006 20:12

reading and writing binary data with a file
 
In Visual Basic 6 I have written a program to read and write to a file. It works fine. Now I have to do the same for binary data since the information I write to the file has end-of-line and return characters. For instance, when I write to the file, the data looks like this:

"3
34"

Because there is a break in the data. In debug mode, the text data has two boxes where the end-of-line and return characters go.

Anyway, does anyone have any example code of binary level reading and writing to and from a file?

Eldarion 02-01-2006 20:19

Re: reading and writing binary data with a file
 
If you are using the FileSystem/TextStream objects, you do not need to use binary access to read/write carriage returns or linefeeds. The only reason the CR/LF combo shows up as two boxes is because there is no way to display it with a single-line textbox (the debug window). If you were to do an asc() on one of those boxes, it would show up as ASCII 13 (CR) or ASCII 10 (LF).

Astronouth7303 02-01-2006 22:05

Re: reading and writing binary data with a file
 
Quote:

Originally Posted by complete
In Visual Basic 6 I have written a program to read and write to a file. It works fine. Now I have to do the same for binary data since the information I write to the file has end-of-line and return characters. For instance, when I write to the file, the data looks like this:

"3
34"

Because there is a break in the data. In debug mode, the text data has two boxes where the end-of-line and return characters go.

Anyway, does anyone have any example code of binary level reading and writing to and from a file?

Use the "Binary" mode, eg
Code:

Open "myfile" For Binary As #1
You then use the Get and Put statements to read/write data.

Please read the docs first, though. Binary mode files do not know sizes of data blocks; it loads enough data to fill the variable.


All times are GMT -5. The time now is 20:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi