Questions tagged [basic]
For questions about the BASIC (Beginner’s All-purpose Symbolic Instruction Code) programming language. DO NOT USE TO INDICATE YOUR QUESTION IS SIMPLE!
basic
297
questions with no upvoted or accepted answers
5
votes
1
answer
175
views
Can I tell the QB64 compiler *not* to optimize my code?
I want to experiment with the efficiency of various algorithms and compiler optimization is an obstacle. Can I disable compiler optimizations in QB64?
4
votes
0
answers
307
views
What is a "base" program on a Casio calculator?
When I make a program, I have the option to make it either "run" or "base".
https://src.mrhitech.repl.co/calcmanual.pdf (backup; the original one seems to have been taken down) ...
3
votes
0
answers
65
views
How to do color printing in HPBasic
Since yesterday, i'm trying to do color printing but it's not working.
Can someone send me an example to print something in colors.
I tried this :
PRINTER IS 26
PLOTTER IS 26,"HPGL;PCL5;COLOR,...
2
votes
0
answers
40
views
Interpretation of BASIC line
I have had to OCR an old bit of BASIC code which contains this line:
which I have interpreted as:
10140 FOR K = 1 TO NS: FOR J = 1 TO NN:A%(CJ%(J),S%(K)) = 1 * (A%(CJ%(J),S%(K)) = 1 OR A%(CJ%(J),N) ...
2
votes
0
answers
113
views
How to solve this triangle problem in Visual Basic? I don't know if I'm doing it right
Make a program that reads a positive integer no greater than 10, and prints a triangle of numbers as follows:
If the number read were 5, then it should print:
1
22
333
4444
55555
The program must ...
2
votes
0
answers
147
views
How to detect MouseWheel in QB45
I am using the following code to trap Left/Right/Middle mouse button and mouse row/column in QB45:
(QB45 is Microsoft Quick Basic v4.5)
and I need a way to detect MouseWheel. I have looked at Ralf ...
2
votes
0
answers
407
views
DDE error 285 (An application refused to perform the DDE)
I have an error 285 when two old application try to communicate using DDE. I have the sourcecode but can't compile because it uses DAO.
What is the best way of debug the DDE communication and sort ...
2
votes
1
answer
199
views
Modify basic files used with gwbasic
I have a batch file which launches other .bas files with the help of gwbasic.
Here is the code of the batch file:
graphics
cd basic
gwbasic menut-hp/d
cd \
Then I have the possibility by typing 1 or ...
2
votes
3
answers
81
views
Type mismatch when converting averages to grade (beginner)
I am taking a computer sciences class right now, and I just have no idea how to convert an average made from 3 scores to a letter grade. At first I thought I could do something like:
PRINT name$(c); ...
2
votes
2
answers
2k
views
LibreOffice how to get filepicker multiple file selection data
In LibreOffice 4.2 I am trying to open the file picker and select multiple files (which I succeeded), and then to transfer the names (and path) of those files to a variable (or array, does not matter)....
2
votes
1
answer
43
views
Excel: How to program to have Excel read a cells contents then switch open a new worksheet?
I'm very new to programming (1 day experience) and I am trying to build an interactive database but I keep running into issues with having a certain part work.
I want Excel to read the value ...
2
votes
2
answers
1k
views
Searching multiple .txt files for all occurrences of a string?
I am trying to create a tool that will search 300+ .txt files for a string that that may be used several times in each of the 300+ .txt files
I want to be able to go through each file and get the ...
2
votes
2
answers
99
views
I don't know what's wrong with this code I'm running on Just BASIC
[Start]
n=INT((RND*10)+1)
PRINT "I have thought of a number."
PRINT "Try to guess it!"
PRINT "Enter your guess."
INPUT g
[Right]
IF g=n THEN GOTO [Finish]
**IF g < n PRINT "Your guess was wrong. ...
1
vote
0
answers
31
views
Hide Console from .BAS compiled into .exe code
I'm developing an application manager to handle the execution of some legacy code written in .bas files. The application is being developed in Java/Kotlin and is accessed via a web service. The .bas ...
1
vote
0
answers
74
views
Libreoffice upgrade (7.5 to 7.6) broke my macro
The macro was working perfectly under 7.5 (7.5.3??) but very frustratingly it's now dead after a Libreoffice 7.6.0.3 upgrade, as are the many(!) instances / slight variants of this code through my ...