Search found 151 matches

by Mac
Sun Feb 10, 2008 8:15 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Haven't used qb in awhile, quick question
Replies: 28
Views: 45943

Be nice

Mac, according to amazon.com, that book is 650 pages, and was printed in 1990. It's almost 18 years old. Times change, coding discussions change. When one mentions a UDT in BASIC, it is always a User Defined Type. My intention was not to be insulting, but if you took it as an insult, then it just s...
by Mac
Sun Feb 10, 2008 3:42 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Haven't used qb in awhile, quick question
Replies: 28
Views: 45943

I at least expected YOU to know what DaveUnit was talking about...the phrase "UDT" is used in BASIC programming all the time. Well, I have the 950-page "Microsoft Quickbasic Bible" by The Waite Group, and I searched in vain for the acronym "UDT". It does not exist. It ...
by Mac
Sun Feb 10, 2008 12:56 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Haven't used qb in awhile, quick question
Replies: 28
Views: 45943

Comments

> Cripes people, this is the easiest damn question to answer > Thanks Nodtveidt for understanding my simple question Glad you guys sorted that out. Now if you could work on your personalties so that you could feel it in your self to respond more kindly, you would really grow up and be smarter than y...
by Mac
Sun Feb 10, 2008 3:53 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Haven't used qb in awhile, quick question
Replies: 28
Views: 45943

Re: Haven't used qb in awhile, quick question

get a function to return a UDT UDT Ujian Darjah Tiga (Malaysia) UDT Under Deck Tonnage UDT Under Declaration of Trust UDT Underage Drinking Taskforce UDT Underwater Demolition Team (US Navy SEALs) UDT Uni?o Democr?tica Timorense (Timor Democratic Union, East Timor) UDT Uniform Data Transfer (COM-ba...
by Mac
Sun Feb 03, 2008 1:45 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Opening something in Hexadecimal
Replies: 2
Views: 7248

Re: Opening something in Hexadecimal

How do I open something up in hexadecimal in Qbasic, then edit it? Read it CLS PRINT "First 5 characters in test.exe" PRINT DIM X AS STRING * 1 OPEN "test.exe" FOR BINARY AS #1 FOR i = 1 TO 5 GET #1, i, X PRINT ASC(X); NEXT i PRINT CLOSE #1 To write, use PUT. If you want hex, th...
by Mac
Sat Feb 02, 2008 4:22 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 50774

Re: binair to bits

Seb McClouth wrote: from a binairy value.
What do you want to get binary values from?

A single, an integer, a string*1, etc.?

For example, I have input a character K$. I would like a function like this:

PRINT BIT(k$,3)

and I expect it to return 0 or 1 of bit 3.

Is that what you want?

Mac
by Mac
Sat Feb 02, 2008 4:50 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Keyboard Help
Replies: 5
Views: 10889

Hmm...the program you gave me returned an error "Duplicate Definition" within the Function. Dang! Don't you just hate posted code with bugs. Maybe by insuring the function has % everywhere consistently. But there is no driver program, so it would be hard to understand or see if the functi...
by Mac
Tue Jan 22, 2008 7:06 am
Forum: QBASIC and QB64 Questions & Answers
Topic: LINK: warning L4501: bcl71efp.lib : cannot find lib (DONE)
Replies: 7
Views: 10857

Plasma

Plasma! Sight for sore eyes! I thought you abandoned the forums.

Mac
by Mac
Mon Jan 21, 2008 3:56 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Maybe I'm just not looking hard enough...
Replies: 2
Views: 4355

Re: Maybe I'm just not looking hard enough...

how can I edit that specific record from QBasic without messing up the file Typically, you rewrite the file. 1) Read the file into arrays in your program. Now you don't need the file any more. 2) Update any "records" you please by changing array values. 3) Re-create the file by writing al...
by Mac
Sat Jan 19, 2008 3:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Besides WAIT &H8D3, what's another way to to reduce flic
Replies: 5
Views: 11387

Re: Besides WAIT &H8D3, what's another way to to reduce

I'm revisiting QB, and I can't seem to find the stuff I need. WAIT &H3DA, 8:WAIT &H3DA, 8,8 This waits one screen refresh and often reduces flicker. Also, do not erase icon from position P1 and then compute P2 and then, finally, write in P2. Instead, do all computing before the decision to ...
by Mac
Sat Jan 12, 2008 2:38 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Um, credit card genorator problem...
Replies: 23
Views: 59407

Re: How it works

IFor instance pick any number from 10 to 100. Add the digits together and subtract from your original number. The resulting number is always divisible by 9. To restate: Pick 10a+b (This is a two digit number. 37 = 10*3+7 Subtract a+b (This is the sum of the digits) Result: 9a Wow! Marvel that 9a is...
by Mac
Thu Jan 10, 2008 1:03 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Um, credit card genorator problem...
Replies: 23
Views: 59407

you guys dont trust me Well, you said for your banking system. No banking system requires the ability to generate credit cards. Forget that. Now I can understanding checking credit cards submitted to me for validity. The instructions given were Starting with the check digit, double the value of eve...
by Mac
Sun Dec 30, 2007 9:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: String$ and Variables?
Replies: 5
Views: 11803

Re: String$ and Variables?

Morpheus wrote:I would like to add up the values of each letter that was inputed by the user.
Please explain why you want that total? What is your application? There may be a better way to do it.

Mac
by Mac
Sat Dec 29, 2007 10:40 am
Forum: News and Announcements
Topic: Qbasic Station down!?
Replies: 14
Views: 32052

IE7 has a retry button. If you are a habitual IE user like me, you also misread Clippy's post. He is not speaking of the "refresh" button whereby your display is refreshed from current internet content. He is speaking of some button I have never heard of which solves this problem: You typ...
by Mac
Fri Dec 21, 2007 2:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Putting variables in the DRAW command.
Replies: 20
Views: 25993

im having another problem and its with the COLOR Unfortunately, each screen has rules about color. It's a pain. SCREEN 13 only allows one operand. There is no way to change the background without stuff like OUT commands. Mac CLS SCREEN 13 FOR i = 0 TO 128 STEP 8 FOR j = 0 TO 7 COLOR i + j PRINT i +...
by Mac
Fri Dec 21, 2007 12:47 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Putting variables in the DRAW command.
Replies: 20
Views: 25993

Still with us, Lee?

Because they dont include "$" :P Thanks for noticing anyways :) Uh, did you get your answer, Lee? As burger2227 implied, you cannot have numbers, just strings. Demo follows. Mac SCREEN 1 LINE INPUT "Press Enter for demo"; e$ FOR i = 1 TO 10 DRAW "d" + STR$(INT(RND * 5)...
by Mac
Thu Dec 20, 2007 12:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: first graphic based....game?
Replies: 11
Views: 20410

Re: first graphic based....game?

Andrew Dance wrote:here's the source
I only see a bit of the source.

Mac
by Mac
Wed Dec 19, 2007 9:31 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling
Replies: 13
Views: 17469

but another question is how do i put variables in the DRAW command? I suggest starting a new thread with this question. Title "How to draw using DRAW command" I presume you couldn't figure out the example in the QBasic HELP section: SCREEN 1 Triangle$ = "F60 L120 E60" DRAW "...
by Mac
Tue Dec 18, 2007 10:15 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: "Expression too complex" error when compiling
Replies: 3
Views: 6600

Curious

It really doesn't matter if this code is inefficient because it are all precalculations. Well, I sure would like to see your final application that required the BtN-array. I agree that pre-computing the NtB-array is useful because it is easy to use, but I would guess the other is as hard to use as ...
by Mac
Tue Dec 18, 2007 7:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling
Replies: 13
Views: 17469

Seb McClouth wrote:Or use DOSKEY
Ignore that, Lee. DOSKEY is a utility that stores recent commands you made at the DOS prompt so you don't have to type them again, but just use up-arrow to get to old commands, etc.

It has nothing to do with your problem regarding scrolling output.

Mac