Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 1677
Number of posts: 4766

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Qbasic key traps? Posted by Knight Sniper on 31 Mar 1999 at 10:55 AM
I was wondering if anyone knew how to trap either CTrl-ALT-DEL, or if there was a way to stop q-basic from breaking if Ctrl-BRK or Ctrl-alt-del. Another question that I have is does anyone know how to store varibles whithout using a binary file??<p>
Thanks for your help in advance.<br>
Jason<br>



Edit Report
Re: Qbasic key traps? Posted by Leahcim on 12 Apr 1999 at 4:52 PM
It's been a while since I coded in QB so I don't remember the answer for Ctrl-Brk or Ctrl-Alt-Del.<p>
You can always use sequential or random output.<br>
Random works roughly the same as binary but you need to specify record and field lengths. Sequential is not a good way to go, because it writes the info end to end and you can't go back or skip places.


Edit Report
Re: Qbasic key traps? Posted by areman on 28 Apr 1999 at 8:19 AM
: I was wondering if anyone knew how to trap either CTrl-ALT-DEL, or if there was a way to stop q-basic from breaking if Ctrl-BRK or Ctrl-alt-del. Another question that I have is does anyone know how to store varibles whithout using a binary file??<p>
: Thanks for your help in advance.<br>
: Jason<p>
you can store variables to a normal text(.txt)-file or .dat-file by using normal file commands<br>
(f.ex. open "c:\myfiles\file.txt" for append as #1<br>
(or how did it went) and print text to a file whit command print #filenumber,variable.


Edit Report
Re: Qbasic key traps? Posted by Gargoyle on 30 Apr 1999 at 9:20 AM
: I was wondering if anyone knew how to trap either CTrl-ALT-DEL, or if there was a way to stop q-basic from breaking if Ctrl-BRK or Ctrl-alt-del. Another question that I have is does anyone know how to store varibles whithout using a binary file??<p>
: Thanks for your help in advance.<br>
: Jason<p>
I don't know off hand exactly how to disable the keys, but go to the attached link and you could find a program that will demonstrate how to accomplish that task.<p>
As for storing data, I've always used a senquiental data file. You could appened the information to the end of the actual .bas file as data statements, or atleast I think you can, I'm not really sure.<p>
The Gargoyle<br>
Don't take life too seriously, it's not permanent...


Edit Report
Re: Qbasic key traps? |||LINK?? Posted by KnightStalker on 30 Apr 1999 at 12:11 PM
<br>
: I don't know off hand exactly how to disable the keys, but go to the attached link and you could find a program that will demonstrate how to accomplish that task.<p>
: As for storing data, I've always used a senquiental data file. You could appened the information to the end of the actual .bas file as data statements, or atleast I think you can, I'm not really sure.<p>
: The Gargoyle<br>
: Don't take life too seriously, it's not permanent...<p>
You said that there was an attached link??? Could you please post the url?<br>
Thanks<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.