noob need help

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
Paul

noob need help

Post by Paul »

how do i turn my .bas files into .exe
User avatar
Pete
Site Admin
Posts: 887
Joined: Sun Dec 07, 2003 9:10 pm
Location: Candor, NY
Contact:

Post by Pete »

Compiling .bas files into .exe files is a function built into QuickBasic (not QBasic though). You will need to get a version of QuickBasic such as QuickBasic 4.5.

You can download QB compilers here: http://www.download-qb.tk/

The once you've got QB installed, it's just a matter of selecting an option from the menu that says "Make EXE".

If you've got anymore questions, just ask.
Guest

Post by Guest »

oh kool thank you, but is ther much of a difference between QBASIC and QuickBasic , and would it my QBASIC code work in useinf the qickbasic Compiling
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

its the same

Post by {Nathan} »

its the same only faster programming and it has more options/menus. it takes a while 2 get used 2, but ull get it eventuallty. i dont even no wut everything does... :?
paul

re

Post by paul »

ok that will do, but one more thing dose anyone no how i can change the value of a input witch is a string? like asking asking someones name and changeing the name
Digital Shadow
Coder
Posts: 23
Joined: Sun Oct 03, 2004 10:26 pm
Location: Prince George, BC, Canada

Post by Digital Shadow »

darn it... miss a day or two and I miss out on most of the noobs questions, you guys have all the fun.
Anyway, dont have the *clearest* clue about what your really asking, maybee this might help
($ is the tag to indentify a variable as a string)

DIM s AS STRING
--will make s a valid string so you dont have to use$

n$="Hello"
--will make n$="hello" (values stored in quotes)

INPUT "Name: ",n$
--will prompt user, and store value to n$

INPUT "Name: ";n$
--ditto, but will put a ? at the prompt

n$=n$+a$
--this will make n$ contain itslef and a$

LEN(n$)
--will return the number of characters in n$

n$=LEFT$(n$,2)
--if n$="12345" then n$="12", crops out 2 chars

n$=RIGHT$(n$,3)
--if n$="12345" then n$="345", crops out 3 chars

n$=MID$(n$,2,3)
--if n$="12345" then n$="234", 2 in, 3 chars

n$=STR$(a)
--if a=123 then n$ will be "123"

a=VAL(n$)
--if n$="123" then a=123, ditto even if n$="123text" or n$="text123"

n$=CHR$(a)
--check ascii codes in help, will make n$=symbol

a=ASC(n$)
--returns ascii code of symbol (ex, "a" "B" "?" "?")

also look up INSTR, it basically finds a specified string fragment inside another string

that should be all the string tools, you can mix and match them, ex:
(the ; allows you to continue printing to the screen on the same line)

Code: Select all

DIM Name AS STRING
INPUT "First Name: ", Name
INPUT "Last Name: ", last$
PRINT "Hello ";Name;" ";last$;", how are you?"
Name=Name+last$
PRINT "The first 3 letters of ";Name;" are ";LEFT$(Name,2)
PRINT "And the last 3 are ";RIGHT$(Name,3)
Name=MID$(last$, LEN(last$)-2, 1)
PRINT "The second to last letter of your last name is ";Name
there, that should cover most of the string basics
People laugh at me because I'm different, I laugh because there all the same... Soooo, if were all laughing, I fail to see the problem
Anonymous

Post by Anonymous »

Look up QB Now! in the September, October and November issues of the QB Express ;)
Post Reply