Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


EOf statement VB help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Fri Aug 22, 2008 5:29 pm    Post subject: EOf statement VB help Reply with quote

How would I put the EOF statement on this code? I've tried everything...
Code:
On Error GoTo ErrorHandler
Dim Contentfile
Me.CommonDialog1.Filter = "Coded bat (*.bat)|*.bat"
CommonDialog1.ShowOpen
Open CommonDialog1.FileName For Input As #2
Input #2, Contentfile
Text1.Text = Contentfile + vbCrLf
MsgBox "I'm sorry about it being glitchy, and not working well." & _
    vbCrLf + "I will be trying to fix this... For now, If you want to get" & _
        vbCrLf + "your code, then just open it in notepad, Copy and paste is" & _
    vbCrLf + "best friend to get your code in the porgram right now, sorry" & _
vbCrLf + "for this inconvenience."
Close #2
ErrorHandler:
    Select Case Err.Number
        Case Else
            MsgBox "You dident load"
    End Select

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Aug 22, 2008 5:34 pm    Post subject: Reply with quote

editing.. sorry didn't think in a right way.

Code:
while not EOF(2){
Input #2, Contentfile
Text1.Text = Text1.Text + vbCrLf + Contentfile
}

_________________
Intel over amd yes.


Last edited by NINTENDO on Fri Aug 22, 2008 5:41 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Fri Aug 22, 2008 5:37 pm    Post subject: Reply with quote

Naablet wrote:
EOF=end of file is only used when reading information from external files. It indicates whenever the program had read the last line or not. So you dont need to use EOF when writeing data into a file.
Atleast that's what I've learned at school.
Then your school sucks! >.> EOF means that it reads the file to the bottom or end, then what I'm trying to do, is when it reads to the bottom, it puts it in the text field...
_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites