Hey, Mac, your Inputlong$ function is pretty slick.
When it stops accepting input at 255 characters, you just hit enter, and then continue entering the rest of your long line.
Works fine.
Regards..... Moneo
Search found 450 matches
- Thu Aug 23, 2007 9:06 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INPUT and 255
- Replies: 7
- Views: 11412
- Wed Aug 22, 2007 5:40 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INPUT and 255
- Replies: 7
- Views: 11412
Re: INPUT and 255
The following code works fine for getting text$ to equal what I want: OPEN "text.txt" FOR INPUT AS #1 INPUT #1, text$ CLOSE #1 But, I don't want to edit TEXT.TXT with Notepad anymore. However, using: INPUT text$ only allows me to type in 255 characters at the QBasic prompt. What am I doin...
- Wed Aug 01, 2007 7:19 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: New to QBASIC, I have a question.
- Replies: 9
- Views: 12939
Re: New to QBASIC, I have a question.
Hello Everyone! I'm trying to get a GOTO to work. PRINT "Logon Name"; : INPUT L$ IF L$ = "austin" THEN PRINT "Hello Austin." ELSE PRINT "Logon Name Incorrect." GOTO 1 END IF Regards, Austin Hi Austin, welcome to the forum. A little suggestion. When you're rea...
- Fri Jul 06, 2007 8:54 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: how to get the timer to count down
- Replies: 5
- Views: 15012
- Wed Jun 27, 2007 6:37 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: File Attributes
- Replies: 5
- Views: 10644
Patz, No sense in sending my !ATTR utility. I just compared mine to DOS's ATTRIB, and they are virtually the same. Mine generates an errorlevel that can be tested from within a batchfile, in case there was some anomaly, like file doesn't exist, illegal attribute, like trying to set a directory to Re...
- Thu Jun 21, 2007 5:48 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: File Attributes
- Replies: 5
- Views: 10644
Do you want to see or change file attributes from within a QB program? If so, you have a problem. I've only been able to do this by linking with the QuickPak Professional Library and it's functions. If you only need to do this from the DOS commandline, you can use the following utilities: 1) ATTRIB ...
- Thu Jun 21, 2007 5:12 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: QB PGM run 40x in win full screen get error - pgm too large
- Replies: 10
- Views: 15014
Hi acs, In the past, I too have had problems with programs that do multiple shells. Apparently, when you do a shell, when you come back, you don't have all the memory you had when you did the shell. I don't know why. It's like the shell operation didn't restore all the memory that it used during the...
- Wed Jun 20, 2007 7:03 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Is it possible to CALL the main module in a program?
- Replies: 3
- Views: 9019
Re: Is it possible to CALL the main module in a program?
If I'm programming a subroutine, can I make it go back to the main thing? If I can, what is the syntax? Thanks ^$$$^ -Aika First of all, are you referring to a SUB or a gosub type subroutine? In the case of a SUB: - The SUB usually gets called by the main module, although SUBs can also be called by...
- Mon Jun 11, 2007 1:16 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Reading and Writing to the buffer
- Replies: 15
- Views: 21171
Re: Reading and Writing to the buffer
What "buffer" are you talking about?bigjoe11a wrote:Does any one know how to read and write from the buffer
I can't beleave that no one knows how to do this
Toper
Topers BBS
Regards..... Moneo
- Thu Jun 07, 2007 9:42 pm
- Forum: Pete's QB Site News
- Topic: QB Express is alive -- Issue #22 is here!
- Replies: 23
- Views: 184676
- Thu May 10, 2007 1:32 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: how to view output while program is running
- Replies: 5
- Views: 14518
- Wed Mar 21, 2007 7:53 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: how to view output while program is running
- Replies: 5
- Views: 14518
Re: how to view output while program is running
How can I see my output as it is being generated? is there any way I can view my output file (either the one generated by the PRINT command, or the one generated by theWRITE command? Well, "as it is being generated", is a bit tough if what you mean is to see it on the fly. However, if you...
- Thu Jan 25, 2007 8:05 pm
- Forum: General Discussion
- Topic: x + x^2=90
- Replies: 3
- Views: 18809
Nathan, I don't remember how to solve it either, but I don't thing the quadratic equation is going to help. Yoo could use the brute force approach by writing a little program that uses a FOR loop on X, and keeps testing until it finds it. Something like this: [code} FOR X = 1 TO 90 T = X + X^2 IF T ...
- Mon Jan 15, 2007 7:20 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: How to make the computer think that a key has been pressed?
- Replies: 19
- Views: 62228
Re: How to make the computer think that a key has been press
You can do this in QB by using INKEY$ or ON KEY.Evan wrote:How can you make the computer think that a key has been pressed?
But you should expalin in more detail what you need or want to do.
Regards..... Moneo
- Mon Jan 15, 2007 7:14 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Splitting an Integral Number Into Two Parts
- Replies: 13
- Views: 24493
- Sat Jan 13, 2007 10:38 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Splitting an Integral Number Into Two Parts
- Replies: 13
- Views: 24493
Hi All, Thank you for the replies and the time you spent trying to work this out. Of course you're correct, and I shouldn't attempt to DIM the value as an integer. I neglected to mention that this number starts life an improper fraction. As it turns out , the forward slash ( \ ) operator was just w...
- Fri Jan 12, 2007 6:50 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Splitting an Integral Number Into Two Parts
- Replies: 13
- Views: 24493
Why not just do... Answer=1.75 DecimalNum=Answer-INT(Answer) IntegerNum=INT(Answer) ? As E.K. pointed out, using DOUBLE (or SINGLE for that matter) will create floating point values with extra digits at the right end of the decimal value. I apologize. E.K., for not having run some tests before post...
- Thu Jan 11, 2007 7:55 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Splitting an Integral Number Into Two Parts
- Replies: 13
- Views: 24493
Re: Splitting an Integral Number Into Two Parts
Hello group, I need to instruct QB to split an Integral (Integer ; Decimal) number into to parts. For example "1.75". I want to be able to work with the Integer and Decimal portions of this number as two independent numbers. Currently, my program does not create or call a file, or a recor...
- Fri Dec 29, 2006 6:42 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: How to put commands at the beging of a allready existing exe
- Replies: 4
- Views: 9253
Re: How to put commands at the beging of a allready existing
I am trying to attach a password field or something to keep people off of the program with out some sort of verification to the beginning of a program. I do not have any pacific program to do attach it to but I but I am asking for educational purposes. Evan Thanks There is a way to attach data to t...
- Fri Dec 29, 2006 6:19 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Need assembly help
- Replies: 4
- Views: 12727
I've written in many assembly languages that had relative jumps (or branches), both conditional and unconditional. Sorry, but I don't know assembler for the PC. So, the first question is does the PC assembler have relative jumps? If so, what is the format of such a jump instruction? Given the answer...