Search Results

Showing results 1 to 40 of 40
Search took 0.01 seconds.
Search: Posts Made By: Buff
Forum: Legacy and Other Languages Mar 8th, 2005
Replies: 13
Views: 13,652
Posted By Buff
The way I read it, he is not deleting the file from the original location, just
adding it to the system32 subfolder/directory so I wouldn't think there would be a problem with other programs.
Forum: Visual Basic 4 / 5 / 6 Feb 11th, 2005
Replies: 1
Views: 13,202
Posted By Buff
The easiest way is to use a fixed font in your listbox.
Otherwise, try tabbing with chr$(9)
Forum: Visual Basic 4 / 5 / 6 Feb 1st, 2005
Replies: 1
Views: 8,177
Posted By Buff
You can download a text calendar I wrote from my web site
http://thunder.prohosting.com/~oasys/frameex1.htm

on the files page.

I also used the following in an accounting program as a...
Forum: Legacy and Other Languages Jan 1st, 2005
Replies: 5
Views: 7,147
Posted By Buff
Sorry, should be
if right$(st$,1)....
Forum: Legacy and Other Languages Jan 1st, 2005
Replies: 2
Views: 3,958
Posted By Buff
If you are using QB (QuickBasic), so often wrongly called Qbasic, then
Call Absolute (as well as Call Interrupt) are in the QB library QB.QLB

In that case, start QB with QB /L libraryname
(no...
Forum: Legacy and Other Languages Dec 19th, 2004
Replies: 1
Views: 4,646
Posted By Buff
CLS
RANDOMIZE TIMER
OPEN "test.txt" FOR INPUT AS #1
DIM wds$(1000)
count% = 0
WHILE NOT EOF(1)
LINE INPUT #1, LL$
FOR K% = 1 TO LEN(LL$)
IF MID$(LL$, K%, 1) = " " OR K% = LEN(st$) THEN
...
Forum: Legacy and Other Languages Dec 19th, 2004
Replies: 5
Views: 7,147
Posted By Buff
St$="Hello my name is John Doe"
if right$(st$)<>" " then st$=st$+" "
for k%=1 to len(st$)
if mid$(st$,k%,1)=" " then words%=words%+1
characters%=characters%+1
next
print "total...
Forum: Visual Basic 4 / 5 / 6 Dec 11th, 2004
Replies: 3
Views: 7,347
Posted By Buff
Dont know about VB but for PB for windows it should be easy
open filename$ for binary as #1
get$ #1,lof(1),info$
numberoffields&=parsecount(info$)
dim myarray$(numberoffields&)
for k&=1 to...
Forum: Legacy and Other Languages Dec 6th, 2004
Replies: 4
Views: 5,394
Posted By Buff
If you can open the old code in notepad, then copy by highlighting/then right click ->copy, you can paste it into qbasic/quickbasic with the following.

(be sure the line lengths are not over 255...
Forum: Legacy and Other Languages Dec 5th, 2004
Replies: 4
Views: 6,097
Posted By Buff
Well Qbasic is basically free since it came with msdos from version 5 - Windows
98 /MSDOS 6.2

It's around on several web sites.

Versions 4-7.1 of Quick Basic are available too (free). Whether...
Forum: Visual Basic 4 / 5 / 6 Dec 1st, 2004
Replies: 4
Views: 20,713
Posted By Buff
There are 2 easy ways - 1 put it in the startup menu of windows by copying it there, 2 call it in autoexec.bat
Forum: Visual Basic 4 / 5 / 6 Nov 12th, 2004
Replies: 7
Views: 4,113
Posted By Buff
Rusti, If you get QuickBasic 4.5 it has lots of examples (in the help) that may be just the thing. Plus it has a compiler. There is also version 4.0 and version
7.x (PDS). Version 4.5 remains the...
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2004
Replies: 7
Views: 4,113
Posted By Buff
Russell, There are still plenty of QB sites out there many of them having downloads of programs.

The ABC archives are still out there too (All Basic Code). which has code
dating back to the early...
Forum: Visual Basic 4 / 5 / 6 Nov 5th, 2004
Replies: 3
Views: 6,396
Posted By Buff
Or,
Shift+Arrow keys to highlight, Control(CTRL)+Insert to copy
then
Shift+insert to paste.

BTW nice pic Dani.
Forum: Visual Basic 4 / 5 / 6 Nov 2nd, 2004
Replies: 2
Views: 4,733
Posted By Buff
--------------------------------------------------------------

ok you have mixed up your array subscripts where the program should not work

HIGH = 0 'GRADE(G)
LOW = 0 'GRADE(G)
TOTAL=0
FOR G...
Forum: Visual Basic 4 / 5 / 6 Oct 23rd, 2004
Replies: 1
Views: 2,748
Posted By Buff
Then i'd recommend installing win98 instead of XP.

As ms moves away from 16bit DOS things will probably get harder and
harder for QB

BTW it's QB.EXE not Qbasic.exe for QuickBasic 4.5

If...
Forum: Legacy and Other Languages Oct 16th, 2004
Replies: 7
Views: 6,781
Posted By Buff
Plus it (PB) allows inline assembly language statements.

With the availability of User Defined Types, Structures, Subs, Functions,
a whole range of data types (integer, long integer, Quad...
Forum: Legacy and Other Languages Oct 14th, 2004
Replies: 7
Views: 6,781
Posted By Buff
I have to disagree with you on several points.

It is still used a lot. Check out all the forums that are still active.
It is still taught in school as a first programming language.

It is very...
Forum: Legacy and Other Languages Oct 5th, 2004
Replies: 4
Views: 7,079
Posted By Buff
PowerBasic has 2 windows compilers (and a DOS compiler).
The windows versions allow inline asm.

Very affordable and the best support.
Forum: Computer Science Sep 30th, 2004
Replies: 12
Views: 7,547
Posted By Buff
Don't leave out PowerBasic for windows which rivals C (perhaps better)
in tight code (no bloatware). Also the best tech support on the planet.
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2004
Replies: 15
Views: 14,582
Posted By Buff
Error 58 is File already exists.

(you can do ERROR #)
where # is a number to find out the error message for that error number

Without the code, it will be impossible to debug.

(You can also...
Forum: Visual Basic 4 / 5 / 6 Sep 19th, 2004
Replies: 3
Views: 14,103
Posted By Buff
Although I don't use VB but rather PowerBasic for windows, maybe this will be of some use (hopefully).

Example:
Assume you have written or have a batch file.
use:

SHELL ENVIRON$("COMSPEC") +...
Forum: Visual Basic 4 / 5 / 6 Sep 7th, 2004
Replies: 5
Views: 28,238
Posted By Buff
I don't know who wrote that but I would say they are full of ___t.
LOL.

Besides, you can treat any file as a binary file.In fact when you get right down to it, all files are binary files in one...
Forum: Visual Basic 4 / 5 / 6 Sep 4th, 2004
Replies: 5
Views: 28,238
Posted By Buff
Though I use PowerBasic for windows instead of VB, i'm sure the record
length for random files is quite large as it is with PB. Of course it should
be kept in mind that many times the larger the...
Forum: Visual Basic 4 / 5 / 6 Aug 25th, 2004
Replies: 4
Views: 3,521
Posted By Buff
You could store the tables in data statements but then you would have to
recompile the program if changes were made.

I would think that either 1) a text file containing the tables or
2) a...
Forum: Visual Basic 4 / 5 / 6 Aug 24th, 2004
Replies: 2
Views: 2,653
Posted By Buff
You might try my tips page to see if there is any help there

http://thunder.prohosting.com/oasys/frameex1.htm

then go to the tips page.
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2004
Replies: 20
Views: 8,201
Posted By Buff
There are several good installation programs out there that will do what you
want or build one yourself with a windows program.

Personally I use a self-extracting exe that runs a setup program to...
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2004
Replies: 2
Views: 3,709
Posted By Buff
&hFF is 255 in hexadecimal (base 16)
I suggest you look up and in the help

outregs.ax does represent 1 16bit register (as with also bx,cx, etc)

You are not altering the registers but rather...
Forum: Legacy and Other Languages Aug 12th, 2004
Replies: 1
Views: 4,030
Posted By Buff
I would suggest you check out PowerBasic.

They have 2 windows compilers; both resonable.

No runtimes are requires (as with VB).

A lot of the syntax is much more like QB (at least to me)....
Forum: Legacy and Other Languages Jul 15th, 2004
Replies: 12
Views: 6,495
Posted By Buff
I'm sure I'm the same one you are talking about.

PowerBasic requires no runtimes and now supports LPRINT.
It also has an LPRINT attach that can use a portname used by windows.
(i.e. not limited...
Forum: Legacy and Other Languages Jul 13th, 2004
Replies: 12
Views: 6,495
Posted By Buff
Power Basic has a Console Compiler that makes text mode programming easy.

It has a DOS-like feel and many of the commands and statements are the same or with minor changes. You have the added...
Forum: Visual Basic 4 / 5 / 6 Jul 10th, 2004
Replies: 3
Views: 25,743
Posted By Buff
i've been able to write a comma-delimited file for use as an excel spreadsheet
quite easily. Even put a Total at the end of one column (only number column).

It does, however require the user to...
Forum: Visual Basic 4 / 5 / 6 Jun 8th, 2004
Replies: 1
Views: 9,564
Posted By Buff
If you send a character, it doesnt matter whether it's hex or not.

Hex is just another numbering system. It can make a difference when sending
large numbers (like 8 bytes of information or so)....
Forum: Legacy and Other Languages May 29th, 2004
Replies: 2
Views: 5,305
Posted By Buff
I don't know what OS this will/will not work on. Should work on
95,98,NT,ME

using shell "attrib +- attribute filename"
+r sets read-only attribute (which may be what you want)
-r removes...
Forum: Visual Basic 4 / 5 / 6 May 24th, 2004
Replies: 9
Views: 11,777
Posted By Buff
Got the answer (to my question above) on the PowerBasic forum
add a line
,,,"Totals",,=SUM(F1.F4)

In my case whether I use F or another letter depends on how many
fields are selected by the...
Forum: Visual Basic 4 / 5 / 6 May 23rd, 2004
Replies: 9
Views: 11,777
Posted By Buff
I've got an accounting program I wrote (basically a General Ledger). I
have an option to send the postings to a spreadsheet.

I use a comma delimited file. This works fine.
The user can include...
Forum: Legacy and Other Languages May 12th, 2004
Replies: 3
Views: 5,401
Posted By Buff
A little ahead of yourself aren't you ?
1965 Darmouth College Beginners All-Purpose Symbolic Instruction Code.

I stand corrected. 1964 May 1 according to Dartmouth web site.
Forum: Visual Basic 4 / 5 / 6 May 12th, 2004
Replies: 40
Views: 62,239
Posted By Buff
Qbasic is still used quite a bit. It is still taught in many schools around the country and is good for that purpose.

Many people have problems with qbasic on XP though not everyone.
I think...
Forum: Legacy and Other Languages May 12th, 2004
Replies: 15
Views: 37,118
Posted By Buff
First search for Qbasic.exe on your computer.
Qbasic was included starting with DOS version 5.0 and was also on the Win95 and Win98(i think) CD-ROMs.

If you find it, be sure that either you are...
Forum: Visual Basic 4 / 5 / 6 May 11th, 2004
Replies: 2
Views: 4,095
Posted By Buff
The easiest way to 'delete' a record in a random file is to write (put)
for RN&=Record&+1 to NR& (number of records)
Get #1,RN&,UDT
PUT #1,RN&-1,UDT
next

then have some way of controlling...
Showing results 1 to 40 of 40

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC