Forum: Legacy and Other Languages Mar 8th, 2005 |
| Replies: 13 Views: 13,652 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 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 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 Sorry, should be
if right$(st$,1).... |
Forum: Legacy and Other Languages Jan 1st, 2005 |
| Replies: 2 Views: 3,958 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 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 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 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 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 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 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 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 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 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 --------------------------------------------------------------
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 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 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 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 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 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 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 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 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 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 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 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 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 &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 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 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 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 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 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 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 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 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 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 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 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 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... |