Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Game Programming > Highscore once again


Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2004, 06:52 AM
weerez1029 weerez1029 is offline
Regular
 
Join Date: Feb 2004
Posts: 46
Default Highscore once again


I am making a top player list and I want to use the output and input function. I can get it to write to the file but I can not get it so that when the form loads it reads the file and puts the number into label on the forum....I think I have asked thisbefore but I dont know, so if anyone can help me, pleasee do cause this final is due in like 3 days....
Reply With Quote
  #2  
Old 06-08-2004, 07:04 AM
Iceplug's Avatar
Iceplug Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: California, USA
Posts: 16,583
Default

You have to open the file for Input in order to read from a file.
Open file For Input As #1
in order to read some text into the label, you need to create a string variable. Input into the string variable, and then assign the string variable to the label caption.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->