Search found 450 matches

by moneo
Thu Aug 23, 2007 9:06 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INPUT and 255
Replies: 7
Views: 5929

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
by moneo
Wed Aug 22, 2007 5:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INPUT and 255
Replies: 7
Views: 5929

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 doing wrong? U...
by moneo
Wed Aug 01, 2007 7:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: New to QBASIC, I have a question.
Replies: 9
Views: 6568

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 reading a name, you never know whether the ...
by moneo
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: 8593

OK, the TIMER runs for 24 hours, giving eleapsed seconds from midnight. Now, there are 60 seconds in a minute and 60 minutes in an hour. So, there are 24*60*60 = 86,400 seconds in a day. If you get the value of seconds that TIMER gives you and subtract it from 86,400 you will get a value that "count...
by moneo
Wed Jun 27, 2007 6:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: File Attributes
Replies: 5
Views: 5015

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...
by moneo
Thu Jun 21, 2007 5:48 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: File Attributes
Replies: 5
Views: 5015

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 ...
by moneo
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: 7464

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...
by moneo
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: 4556

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...
by moneo
Mon Jun 11, 2007 1:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Reading and Writing to the buffer
Replies: 15
Views: 10955

Re: Reading and Writing to the buffer

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
What "buffer" are you talking about?

Regards..... Moneo
by 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: 49327

Hip, hip, hurray to Pete!

Regards..... Moneo
by moneo
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: 7467

... just testing ...
by moneo
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: 7467

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'll settle...
by moneo
Thu Jan 25, 2007 8:05 pm
Forum: General Discussion
Topic: x + x^2=90
Replies: 3
Views: 6738

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 ...
by moneo
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: 20669

Re: How to make the computer think that a key has been press

Evan wrote:How can you make the computer think that a key has been pressed?
You can do this in QB by using INKEY$ or ON KEY.

But you should expalin in more detail what you need or want to do.

Regards..... Moneo
by 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: 11592

..... I'm experimenting with the "FIX (N)" function. It seems to have promiss as it does it's work while the number is in Integral (integer + decimal) form instead of Fractional. QB45 has a few examples of its use, but the best example is found listed under the "INT" function. This example demonstr...
by moneo
Sat Jan 13, 2007 10:38 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Splitting an Integral Number Into Two Parts
Replies: 13
Views: 11592

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...
by moneo
Fri Jan 12, 2007 6:50 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Splitting an Integral Number Into Two Parts
Replies: 13
Views: 11592

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...
by moneo
Thu Jan 11, 2007 7:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Splitting an Integral Number Into Two Parts
Replies: 13
Views: 11592

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 record in a fil...
by moneo
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: 4450

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...
by moneo
Fri Dec 29, 2006 6:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need assembly help
Replies: 4
Views: 5912

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...