I've created this sub-forum with the intention for it to be a place where PC-BASIC community members can share their BASIC code, links and other resources about classic BASIC.
Enjoy!
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm Sorry, I don't know what you will like to see. But I can share with the community some of the programs that I have been working in PC-BASIC. I will try to post an attachment. I'll be interested to see what people have to say abaout something itermidiate. Part of it was posted in some part of this forum but you may want to look at it finished. Remember, this is a spaguetti unstructered code (like the old times)... I thik this is why people may think that BASIC is not good for serious programming. But, again, it was fun doing it while testing not only the program but PC-BASIC at well.
This fille was was written by someone else, so I honor his work and make some modifications as it looks like he was trying to finalize it. It's a beautiful program, I just add some appealing touching to it. For a Tandy 1000 or PCjr taste.
Hi Marco, which version are you using? What happens that you do not expect to happen?
In 15.08.11 this seems to be working OK on my computer: like in GW-BASIC, it produces a sound of increasing pitch, then ends with an Illegal function call when t goes outside the allowed bounds 0-84 for the N subcommand.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can use the command FILES to see the files in your current directory. This may also help you locate which directory is set as the current directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi any one had experience with Economatics Smart box and using PC basic to access the Smart box, albeit probably the first problem will be... the usb to seriel port any idea's ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
DOES ANYONE HAVE SOURSE CODE FOR THE BUTTONS ON LINE 25.. WOULD LIKE TO CODE INTO A PGM SO IT OPERATES LIKE THE REAL ONE BUT, WOULD LIKE TO USE L/R ARRPOW + HIGHLIGHT CHOICES.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi! i am back after a long time to Basic for a pet project. I am trying to figure a way to choose a number from 1 to 16 in a random way until all number are choosen. I want to use this number to assign them to variable.
Thank you
Richard not a programmer by training
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, new to all this. I need to parse some text and no longer have access to Visual Basic 5.0. (dating myself). I can't seem to get the OPEN command to find my file, no matter how I type in the path. Right now the default path is C:\Program Files (x86)\PC-BASIC-1.2\pcbasic, which is where Windows installed the program. How can I get pcbasic to recognize my path to C:\Basic?
Thanks,
Brian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can map drives and other file system locations as PC-BASIC devices by
using the mount option in the configuration file or on the command prompt.
For example, on Windows, the option
mount=A:C:\Users\Me\BasicFloppy
will make the folder C:\Users\Me\BasicFloppy available as PC-BASIC's A:
Hi \brian, what version of PC-BASIC and what operating system do you use, and how did you install PC-BASIC? I'm wondering how come things are not in the standard location - normaly the working directory of the start menu shortcut would be set to your documents or user profile folder, which is where programs would then go.
I installed from here: https://robhagemans.github.io/pcbasic/
I have PC_BASIC 1.2.14 installed.
The default path ended up as: C:\Program Files (x86)\PC-BASIC-1.2\pcbasic
On my computer PCBASIC.INI ended up in:
C:\Users\Brian\AppData\Roaming\pcbasic-1.2
Once I understood that the .INI file was where you set the MOUNT command,
everything came together. I do not think that is made clear enough in the
documentation, but I am not a programmer and perhaps I am a little dense in
these kind of things.
The program seems to be working fine now.
This should make life a lot easier for me, as about once a year I have to
write a translator to manipulate printed circuit board net lists into
different formats for my work. Thanks for all your effort.
Hi \brian, what version of PC-BASIC and what operating system do you use,
and how did you install PC-BASIC? I'm wondering how come things are not in
the standard location - normaly the working directory of the start menu
shortcut would be set to your documents or user profile folder, which is
where programs would then go.
That looks like the install path, but what is the "start in" folder of the start menu shortcut? Which version of windows is this?
As to the documentation, I have literally spent hours making that section as clear as possible and I have no idea what I can improve there anymore. If you have concrete suggestions, let me know.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On the documentation: I never saw the part about the .INI file being the
place where the mount command was set. I tried to read as much as I needed
to in order to get started, but there was no way I was going to read all of
it. There's just so much there, and most of it does not apply to my limited
needs. You've done a huge job and I am grateful that you have made this
available, so no problems from my end.
Since I lost the use of Visual Basic a few years ago when I had a machine
die, I have been searching for an easy to use program that I can do small
text parsers with. I tried Java, Python and C, but what I could do in an
afternoon with VB ended up never getting done in any of them. The learning
curve and my available time just could not intersect to get an application
done. Your program lets me get back to what I know how to do. The learning
curve is flat. I am happy.
That looks like the install path, but what is the "start in" folder of the
start menu shortcut? Which version of windows is this?
As to the documentation, I have literally spent hours making that section
as clear as possible and I have no idea what I can improve there anymore.
If you have concrete suggestions, let me know.
Hi all,
I've created this sub-forum with the intention for it to be a place where PC-BASIC community members can share their BASIC code, links and other resources about classic BASIC.
Enjoy!
Rob
View and moderate all "[CLOSED] BASIC Programs" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Ok, may be every body knows how to copy hes programs to these site , but i dont know, copy them ???, move them ???, i dont know , please tellmy how.
thanks.
Under the field where you type your message, there is a link or button "Add attachments". You can use that to attach a file to your message.
Hope this helps
Rob
View and moderate all "[CLOSED] BASIC Programs" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Write a program in basic that shows the value
of A through H (1 through 8) such that no value
is adjacent to another value less than 2.
I know the answer - I want to see how the
FOR NEXT loops are nested
I'm Sorry, I don't know what you will like to see. But I can share with the community some of the programs that I have been working in PC-BASIC. I will try to post an attachment. I'll be interested to see what people have to say abaout something itermidiate. Part of it was posted in some part of this forum but you may want to look at it finished. Remember, this is a spaguetti unstructered code (like the old times)... I thik this is why people may think that BASIC is not good for serious programming. But, again, it was fun doing it while testing not only the program but PC-BASIC at well.
This fille was was written by someone else, so I honor his work and make some modifications as it looks like he was trying to finalize it. It's a beautiful program, I just add some appealing touching to it. For a Tandy 1000 or PCjr taste.
Rob, there is a problem whit your basic emulator, the command "play" is out of running the program. Is this already a problem to disolved?
this little program is the problem:
10 for t=1 to 200:play"l64n=t;": next t
Hi Marco, which version are you using? What happens that you do not expect to happen?
In 15.08.11 this seems to be working OK on my computer: like in GW-BASIC, it produces a sound of increasing pitch, then ends with an
Illegal function call
whent
goes outside the allowed bounds0-84
for theN
subcommand.View and moderate all "[CLOSED] BASIC Programs" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I have installed PC Basic, but it cannot find my basic file. i have copied it to users but "file not found"
Please see here: http://robhagemans.github.io/pcbasic/doc/#mounting
You can use the command
FILES
to see the files in your current directory. This may also help you locate which directory is set as the current directory.My understanding is it is under c:\users\admin
View and moderate all "[CLOSED] BASIC Programs" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi any one had experience with Economatics Smart box and using PC basic to access the Smart box, albeit probably the first problem will be... the usb to seriel port any idea's ?
View and moderate all "[CLOSED] BASIC Programs" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
DOES ANYONE HAVE SOURSE CODE FOR THE BUTTONS ON LINE 25.. WOULD LIKE TO CODE INTO A PGM SO IT OPERATES LIKE THE REAL ONE BUT, WOULD LIKE TO USE L/R ARRPOW + HIGHLIGHT CHOICES.
Hi! i am back after a long time to Basic for a pet project. I am trying to figure a way to choose a number from 1 to 16 in a random way until all number are choosen. I want to use this number to assign them to variable.
Thank you
Richard not a programmer by training
Try this:
Hi, new to all this. I need to parse some text and no longer have access to Visual Basic 5.0. (dating myself). I can't seem to get the OPEN command to find my file, no matter how I type in the path. Right now the default path is C:\Program Files (x86)\PC-BASIC-1.2\pcbasic, which is where Windows installed the program. How can I get pcbasic to recognize my path to C:\Basic?
Thanks,
Brian
Brian,
See the 'mount' option from documentation:
You can map drives and other file system locations as PC-BASIC devices by
using the mount option in the configuration file or on the command prompt.
For example, on Windows, the option
mount=A:C:\Users\Me\BasicFloppy
will make the folder C:\Users\Me\BasicFloppy available as PC-BASIC's A:
http://robhagemans.github.io/pcbasic/doc/1.2/
I tried this from a command prompt within windows and got:
'mount' is not recognized as an internal or external command...
I tried it from within the basic interpreter window and got:
mount=A:C:\Basic
Syntax error
Ok
Suppose you want to mount your C:\Basic directory as drive A: for PC-BASIC.
You have two options:
1) Either run PC-BASIC from command prompt like this:
pcbasic --mount=A:C:\Basic
2) Or, before running PC-BASIC, edit the file PCBASIC.INI and add the following line:
mount=A:C:\Basic
You would find PCBASIC.INI in your %AppData% path:
%AppData%\pcbasic-1.2\PCBASIC.INI
Last edit: Everton da Silva Marques 2019-03-15
I had to search for it as it was not in the location you specified, but option #2 worked.
Many thanks.
Hi \brian, what version of PC-BASIC and what operating system do you use, and how did you install PC-BASIC? I'm wondering how come things are not in the standard location - normaly the working directory of the start menu shortcut would be set to your documents or user profile folder, which is where programs would then go.
Also have a look here: http://robhagemans.github.io/pcbasic/doc/1.2/#mounting
Rob,
I installed from here: https://robhagemans.github.io/pcbasic/
I have PC_BASIC 1.2.14 installed.
The default path ended up as: C:\Program Files (x86)\PC-BASIC-1.2\pcbasic
On my computer PCBASIC.INI ended up in:
C:\Users\Brian\AppData\Roaming\pcbasic-1.2
Once I understood that the .INI file was where you set the MOUNT command,
everything came together. I do not think that is made clear enough in the
documentation, but I am not a programmer and perhaps I am a little dense in
these kind of things.
The program seems to be working fine now.
This should make life a lot easier for me, as about once a year I have to
write a translator to manipulate printed circuit board net lists into
different formats for my work. Thanks for all your effort.
Brian Bange
PPC
281-639-2917
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sat, Mar 16, 2019 at 1:34 AM Rob Hagemans robhagemans@users.sourceforge.net wrote:
That looks like the install path, but what is the "start in" folder of the start menu shortcut? Which version of windows is this?
As to the documentation, I have literally spent hours making that section as clear as possible and I have no idea what I can improve there anymore. If you have concrete suggestions, let me know.
start in = C:\Users\Brian
On the documentation: I never saw the part about the .INI file being the
place where the mount command was set. I tried to read as much as I needed
to in order to get started, but there was no way I was going to read all of
it. There's just so much there, and most of it does not apply to my limited
needs. You've done a huge job and I am grateful that you have made this
available, so no problems from my end.
Since I lost the use of Visual Basic a few years ago when I had a machine
die, I have been searching for an easy to use program that I can do small
text parsers with. I tried Java, Python and C, but what I could do in an
afternoon with VB ended up never getting done in any of them. The learning
curve and my available time just could not intersect to get an application
done. Your program lets me get back to what I know how to do. The learning
curve is flat. I am happy.
Thanks,
Brian Bange
PPC
281-639-2917
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sat, Mar 16, 2019 at 9:07 AM Rob Hagemans robhagemans@users.sourceforge.net wrote: