Search found 19 matches

by Mike Alexander
Thu Dec 14, 2006 12:51 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: need some help
Replies: 2
Views: 3629

Re: need some help

i need this by monday. i am willing to pay some one to write it for me. if you are interested email me at smurfmaster@msn.com So... Tell me... What is the point of taking a programming class if you are going to pay someone else to do it? This is basic programming... The amount of time to create wha...
by Mike Alexander
Sat Dec 09, 2006 10:00 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Strings equaling another string??
Replies: 3
Views: 5856

Strings equaling another string??

I have run into an interesting issue with my non-printable character issue... I read an input from a file to determine an intensity and color to be used.. In this example, the line is read into a strings named INTENSITY1$ BARCOLOR$ and is "NORMAL" and "RED" INTENSITY1$ ="NORMAL" BARCOLOR$ ="RED" I b...
by Mike Alexander
Sat Dec 09, 2006 3:04 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Stupid question but i really need help!
Replies: 20
Views: 19352

I understand what you are saying, but you certainly can not copy and paste... That is a great benifit of using a windows based editor. Don't get me wrong, the QB editor does work, and sure you can ALT/TAB out but it is not the same. Either way, when I was using the dos based editor, I would get high...
by Mike Alexander
Fri Dec 08, 2006 9:57 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Stupid question but i really need help!
Replies: 20
Views: 19352

Of course you can run QBasic under XP. Many of us are doing it right now. There is no special installation required. I compile and run my QuickBasic 4.5 programs, and also use QBasic for certain things. No problems. I've heard people say thet they've had some problems, but I don't know what they ar...
by Mike Alexander
Fri Dec 08, 2006 8:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Stupid question but i really need help!
Replies: 20
Views: 19352

Sure it is doable... just do not use the QB.exe editor... it causes do response issues with windows environments... I use ConText editor, and just use the compiler/linker from QBasic... Go to http://www.context.cx/ and download the editor and then I uploaded the highlighter to the context website. G...
by Mike Alexander
Fri Dec 08, 2006 4:17 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8665

.....More on my program... So how can I add non printable Characters in a Print statement? Specifically an ASCii Value of 001 You can add any valid ASCII characters you want, either directly to a PRINT command or to a string, like: PRINT "BLABLABLA"+CHR$(001) ... or more or A$="BLABLABLA"+CHR$(001)...
by Mike Alexander
Wed Dec 06, 2006 10:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8665

Checkout the COMMAND$ function. Using the same command-line that you posted, your program can get the names of the 2 files as follows: c$ = command$ 'get the command-line, except for the .EXE name. s = instr(c$," ") 'find location of space delimiter between filenames. if s = 0 then print "Invalid o...
by Mike Alexander
Sun Dec 03, 2006 7:39 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Yesterdays Date??
Replies: 8
Views: 7582

Ok, I didn't realize that YEAR$ was only two digits. Fine, so you have some filenames like 1231100 or 1231101. That's OK, as long it's a valid filename and you know how to interpret the pseudo date within. I have seen stranger stuff done to dates in an attempt to circumvent the Y2K problem. Most of...
by Mike Alexander
Sun Dec 03, 2006 7:36 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Access File Hint for me....
Replies: 5
Views: 7505

Example: Assuming this text file was called xxx.txt, the key to sort on was at the front of each record, and the sorted output goes to the same file, you could do the following from your program: SHELL "cmd/c SORT xxx.txt /o xxx.txt" See other options/parameters for SORT as required. You can buy ot...
by Mike Alexander
Sun Dec 03, 2006 6:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Yesterdays Date??
Replies: 8
Views: 7582

Nice that you're using my code. I've seen some apparently simpler code, but mine uses routines that have been working for over 15 years in my general date utility program. I have some comments on the following code: zdd=zdwork '* Pack yesterday's date as MM-DD-YYYY Z$=FILL$((ZMM),2)+"-"+FILL$((ZDD)...
by Mike Alexander
Sun Dec 03, 2006 4:57 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Access File Hint for me....
Replies: 5
Views: 7505

I run Synchronet. http://ultimate.4alexanders.com I realize there are doors for this, but you know, none of those ever do what you want them to do. A lot of the fun is making the program like you want, but never having messed with Random Access files makes the task difficult. I could use a standard ...
by Mike Alexander
Sun Dec 03, 2006 4:14 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Access File Hint for me....
Replies: 5
Views: 7505

Random Access File Hint for me....

Hello again... Here is what I am trying to do... I run a BBS ... You know, one of them old timey things from 1990's... Anyway, I have DoorGames... I want to track usage for these doors... Here is my vision... I would like to create a program that will track the usage of each door. I have a method by...
by Mike Alexander
Sat Dec 02, 2006 11:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8665

Right, if the user makes a typo error on the filename, you'll get a "file not found" error on the open. Using the ON ERROR is a good way to catch this. Regards..... Moneo Can I have an error trap for my whole program? By that I mean at the very top (just before my mainline) I can put an "on error g...
by Mike Alexander
Sat Dec 02, 2006 11:52 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Yesterdays Date??
Replies: 8
Views: 7582

You're right, getting yesterday's date is not a simple matter. You need to have a table or array of the number of days in each month, plus when you're dealing with February, you need to have logic to determine leap year. I've done this before, so why don't you post the code that you have for this a...
by Mike Alexander
Sat Dec 02, 2006 12:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Yesterdays Date??
Replies: 8
Views: 7582

Your problem is that your variables are Strings. String is text and "text" + "text" = "texttext". You need to use VAL function to get your variables as numerical values. If you have problems with VAL function, let us know. I finally got it... I ended up borrowing some code I found at QBasic.com and...
by Mike Alexander
Fri Dec 01, 2006 11:05 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Yesterdays Date??
Replies: 8
Views: 7582

Yesterdays Date??

Ok... Now for part two of my problem... Here is some simple code I put together to overcome a Y2K issue with another program that I do not own the source for... TODAY$=DATE$ MONTH$=LEFT$(DATE$,2) DAY$=MID$(DATE$,4,2) YEAR$=RIGHT$(DATE$,2) TODAY$=MONTH$+DAY$+"1"+YEAR$+".LOG" This will give me a date ...
by Mike Alexander
Fri Dec 01, 2006 10:44 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8665

Now you have the filenames so you can open them. The only problem now is that the name of the input "old" file might be invalid, and you'll get an error when you open it. But, that's another subject. Regards..... Moneo Ok... So that worked exactly like you said... so now what were you meaning about...
by Mike Alexander
Fri Dec 01, 2006 10:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8665

Whoa... cool... That was fast.... Thanks for he help I will plug it in and give it a shot now...

:-)
by Mike Alexander
Fri Dec 01, 2006 8:33 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8665

Command Line Argument/Switch

I am writing a small application where I will need to use a few command line arguments... I have not done this before and have always just used a config.cfg file for my applications. However, this time I decided rather than create yet another config file, I could use a command line argument list (ac...