Page 1 of 1

noob need help

Posted: Sat Oct 09, 2004 8:55 am
by Paul
how do i turn my .bas files into .exe

Posted: Sat Oct 09, 2004 9:13 am
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.

Posted: Sat Oct 09, 2004 9:29 am
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

its the same

Posted: Sat Oct 09, 2004 11:07 am
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... :?

re

Posted: Sat Oct 09, 2004 11:33 am
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

Posted: Tue Oct 12, 2004 3:52 pm
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

Posted: Wed Oct 20, 2004 4:22 am
by Anonymous
Look up QB Now! in the September, October and November issues of the QB Express ;)