green text is being edited and should not be considered
relevant to the tutorial. for a while, it will make up
the bulk of this section.
black text has been edited to be more accurate with
regards to puppybasic.
........................................................................
other useful statements
1 of 7
an intro to puppybasic
chapter 17: other useful statements
........................................................................
........................................................................
other useful statements
2 of 7
SHELL calls a dos command. dos of course, is not only capable of
managing operations with files and folders, it can call other pieces
of software. running large programs from shell may result in an "out
of memory" error from dos. (usually not an issue.)
here's a nice example for SHELL:
SHELL "dir *.* /a /b > dirfile.txt"
this creates a file called "dirfile.txt" containing a list of all
files in the current folder. then you can load the list with the OPEN
command.
........................................................................
........................................................................
other useful statements
3 of 7
mode co40 is another useful dos command, but doesn't always (if ever)
work in windows xp. (for some reason, every time windows makes a new
dos emulator it does even less of the stuff that dos or the previous
dos emulator did.)
it is better still to use mode con cols=40, which works in xp and can
be used in puppybasic like this:
SHELL "mode con cols=40"
........................................................................
........................................................................
other useful statements
4 of 7
this is better than width 40, as it's more likely to work. i knew of
one project that wouldn't stay in WIDTH 40 unless you first shelled to
run this dos command, then used WIDTH 40 as well.
........................................................................
........................................................................
other useful statements
5 of 7
COMMAND$
quickbasic (compiler) only. reads the arguments typed next to
a standalone exe's name, from dos or windows, so if your compiled
program was called appli01.exe and you were to type:
c:\winnt\>appli01 New.txt /fs
at the dos prompt (for instance) and you put this at the beginning of
your program:
q$=COMMAND$ 'then the string q$ would contain: "New.txt /fs"
........................................................................
........................................................................
other useful statements
6 of 7
SYSTEM
use this instead of END, this is only useful when using the
interpreter. it ends the program, but if the
interpreter is running, exits the interpreter also.
this only works if you've run a program using /run
[file].bas or /run file... etc. (from a script for instance.)
an example:
........................................................................
........................................................................
other useful statements
7 of 7
SYSTEM
END 'you don't need END here, but it hurts nothing and is easy to spot
'when other people are reading your code.
-= end of chapter 17 =-
........................................................................
an intro to puppybasic (chapter 17)
this content is public domain.
........................................................................
click here to go back to the contents page
Before You Post, Please Note...
-> Please Note: By Posting, you agree to submit the contents of your post to the Public Domain <- SEE: howto post to this blog
Friday, February 2, 2007
puppybasic intro ch. 17 - other useful statements
Subscribe to:
Post Comments (Atom)
25 comments:
cheap generic xanax generic xanax online - xanax and caffeine effects
xanax online 2mg klonopin xanax - xanax xr generic pictures
order tramadol tramadol withdrawal signs - tramadol 50mg does get you high
buy tramadol online tramadol street price - boompanjang blogspot buy tramadol online
buy tramadol online if you overdose tramadol - online pharmacy tramadol overnight
buy tramadol online buy tramadol with mastercard - buy tramadol overnight cod
tramadol online no prescription tramadol addiction constipation - tramadol 750
generic xanax xanax overdose effects - 1mg klonopin vs 1mg xanax
carisoprodol 350 mg carisoprodol street drug - carisoprodol codeine
buy tramadol online buy tramadol online mastercard - tramadol for purchase no prescription
tramadol generic tramadol 50mg usa - safe place buy tramadol online
buy cialis daily cialis and poppers - cialis price australia
cialis online generic cialis cheapest - buy cialis viagra online
http://landvoicelearning.com/#51602 what is ultram tramadol hcl 50 mg - tramadol y paracetamol
learn how to buy tramdadol tramadol online no prescription cod - buy generic tramadol
buy tramadol without rx buy tramadol cod overnight delivery - discount tramadol no prescription
buy tramadol online ultram tramadol 100mg - ultram side effects in women
order tramadol online tramadol 50 mg much - tramadol mg
buy tramadol tramadol hcl 50 mg picture - tramadol hcl images
buy tramadol tramadol overdose hallucinations - discount coupons for tramadol
http://blog.dawn.com/dblog/buy/#85714 usual dosage tramadol - tramadol 50mg good
http://landvoicelearning.com/#38471 buy tramadol online no prescription - tramadol for sale online usa
buy tramadol buy tramadol online mastercard overnight - tramadol no prescription free shipping
buy tramadol online cod overnight tramadol hydrochloride get high - buy tramadol 50mg net
buy ativan online buy lorazepam online no prescription needed - buy lorazepam online mastercard
Post a Comment