872 questions
Score of 2
5 answers
338 views
Perform GW-BASIC comparison of two variables
I'm using GW-BASIC to determine a person's weight on another planet.
I need to form a comparison between the weight factor on a planet to the planet that the user inputs. I have defined my planets so ...
Score of 1
1 answer
64 views
SELECT from two different .MST files to produce a combined result
I'm trying to answer an exercise question for Universe BASIC programming as follows:
List the CLASS.NAME of students whose age are more than 21.
Expected working is to be in the form of a TCL command ...
Score of 1
2 answers
93 views
TI-84 BASIC: Nested For Loops via matrix iteration
I am new to TI-84 BASIC programming and having a devil of a time at it. Right now I am trying to write a function that will sum a matrix but my for loops only run once. I do see in the manual that ...
Score of 1
0 answers
47 views
Libre Calc Cell format (Formula to Value Back to Formula)
Context: After years of Microsoft/Excel/VBA, I have switched to Linux/Libre Calc/Basic, still learning the syntax.
This project is a "Proof of Concept" to learn via designing a Slot/Pokie ...
Score of 0
1 answer
244 views
Redraw images in Libre Office Calc via basic macro
I want to write a macro which reloads all images inserted in a Calc document. I've heard of linking images, but I don't know the specific commands in LibreOffice Basic. So far the best answer I've got ...
Score of 2
2 answers
100 views
Why is my file deleting itself when I open it?
I’m currently learning BASIC (I use FreeBASIC) and I’m trying to open files. However, instead of opening files, my program deletes them. This is my code:
Dim f as Integer
f = FreeFile
Open "...
Score of 4
2 answers
97 views
Two zero bytes instead of three to signal End-of-BASIC?
Jim Butterfield's "Machine Language for Commodore Machines" book states at page 92 in the chapter on BASIC Memory Layout that (emphasis mine):
End-of-BASIC is signaled by three zero bytes ...
Score of 2
0 answers
115 views
QB64 order of includes for SUBs/FUNCTIONs and TYPEs
I'm trying to make a simple BASIC game in QB64. I'm used to programming C# and am not sure how I should kinda make 'objects' (as far as possible) in BASIC with QB64 and use them by including them ...
Score of 1
1 answer
114 views
BASIC "Statement cannot be placed between SUB FUNCTIONS"
I'm trying to make a simple game with BASIC in QB64.
I'm used to programming C# and I can't get the simples thing working:
test 1.bas:
REM $INCLUDE: 'test2.bas'
Hey
test2.bas:
SUB Hey
PRINT &...
Score of 0
2 answers
64 views
How to Disable/Enable two pushbuttons at the same time using a checkbox in LO Basic
I have tried arranging this code a dozen different ways. I am at a loss. It only works on the first button.
The macro runs on a "1' or "0" value in the cell linked to a checkbox. I want ...
Score of -1
1 answer
307 views
How to call a bash script from a basic function (macro)
i am trying to find the way to call a simple bash script from a macro of my calc document.
i 've hard with this instruction:
session.RunApplication("Shell", "/usr/local/bin/essai-macro-...
Score of 3
2 answers
242 views
Unable to enter a FOR loop in ZX Spectrum BASIC type-in
I'm trying to get back into Spectrum BASIC and have been reading an old manual, so am looking at the very basics of BASIC.
I've been trying to type the following line of code in to create the opening ...
Score of 0
0 answers
66 views
Macro in Basic for LibreOfficeWriter: make a textframe for each bookmark
I have a Writer document, that has bookmarks (It's a theater play, the bookmarks are the number of each verse).
I'd like to make each bookmarks visible, I am thinking about creating a textFrame for ...
Score of 2
1 answer
162 views
Migrating from BASIC to Rust, what do I do with On Gosub?
Most BASIC to Rust code is straightforward. However, what do I do with On Gosub? My brief is to use identical code constructs wherever possible.
Here is the BASIC code (reduced to the minimum).
choice ...
Score of 1
2 answers
111 views
How do I correct these BASIC errors
First time posting here, I'm getting a few errors in an old 1977 BASIC program for the Sol 20 computer.
First error is a "DM error in line 4240":
4220 PRINT " TYPE IN -STOP- TO ...