|
-
Jun 12th, 2006, 04:50 PM
#1
Thread Starter
Junior Member
End of File
How do you set a character equal to the "end of file" character?
dim c as char = ?????
-
Jun 12th, 2006, 05:03 PM
#2
Re: End of File
VB Code:
Dim c As Char = Convert.ToChar(0)
-
Jun 12th, 2006, 05:11 PM
#3
Thread Starter
Junior Member
Re: End of File
that is end of line, I need end of file
-
Jun 12th, 2006, 05:27 PM
#4
Re: End of File
 Originally Posted by Skydiver78
that is end of line, I need end of file
No, it isnt. End of line is char 13 and char 10.
-
Jun 12th, 2006, 05:28 PM
#5
Thread Starter
Junior Member
Re: End of File
After running
Dim c As Char = Convert.ToChar(0)
c is nothing
-
Jun 12th, 2006, 05:29 PM
#6
Re: End of File
VB Code:
debug.print(cstr(convert.toint32(c)))
edit*
Why dont you try the code before wasting any more of my time
-
Jun 12th, 2006, 05:34 PM
#7
Thread Starter
Junior Member
Re: End of File
I did run the code,
Dim c As Char = Convert.ToChar(0)
returned a value of NOTHING for c
-
Jun 12th, 2006, 05:36 PM
#8
Thread Starter
Junior Member
Re: End of File
Yep, just ran it again...NOTHING!
-
Jun 12th, 2006, 05:38 PM
#9
Thread Starter
Junior Member
Re: End of File
I appreciate you trying however.
-
Jun 12th, 2006, 05:50 PM
#10
Re: End of File
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim c As Char = Convert.ToChar(0)
Debug.Print(CStr(Convert.ToInt32(c)))
End Sub
Look, using this code it will say 0. I assume it converts 0 to nothing, I dont know. It still retains its value of zero. That is the null char that ends a file.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|