Skip to main content

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!

0 votes
1 answer
23 views

My existing code is altered by adding a button

If I add a new button to a VB windows form, all the existing buttons on that form, have part of the first line of their code wiped, as shown in italics below. Private Sub Button1_Click(sender As ...
Col Mortimer's user avatar
0 votes
0 answers
35 views

Reducing gap in the DatagridView's panel

See screenshot The dgv Inside the blue panel should be maximized in without any gap Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click If Not ValidateInput(CtrlDtl) ...
agaesh kumar's user avatar
0 votes
1 answer
80 views

Why is there an unexpected character on line 6 in C64 Basic?

PRG Studio says there is an unexpected character on line 6. But, I can't figure out why. I'm programming for the c64. 1 rem setup 3 holding = "nothing" 6 playing_game = true 10 rem intro 20 ...
kai's user avatar
  • 35
1 vote
2 answers
68 views

Length of random sequence in Locomotive Basic (1986)

I am learning BASIC and working now in GEM Locomotive BASIC (1986) on '86 Amstrad PC1512DD (8MHz, 512 ram, 5.25" 360 kb floppies) I am randomly generating numbers in a range with a program that ...
Liebenfiels's user avatar
0 votes
1 answer
76 views

A way to add subroutines by code at runtime in libreoffice basic

Is there a way to add / delete subroutines or functions by code at runtime in libreoffice basic? I would very like to be able to create, delete and run subroutines or functions by code at runtime. I ...
mutercim's user avatar
0 votes
1 answer
57 views

creating a new module in a chosen library using libreoffice basic

How can I create a new module in a chosen library using libreoffice basic code? I've tried: ThisComponent.getLibraryContainer().getByName("C_calc").getModuleContainer().insertByName("...
mutercim's user avatar
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 ...
Micklos's user avatar
  • 137
-1 votes
2 answers
101 views

VB.NET and DataGridView: how read a specific Cell value

I have a DataGridView of 3 columns and 3 rows (it's just an example). I would like to read only the value of a specific cell (in this example 2x2). How do you do this? I try this code but visual ...
Marco Giglio's user avatar
0 votes
1 answer
19 views

Inverting a number digits in Applesoft Basic

I'm using the Apple II+ emulator in the following link: https://www.calormen.com/jsbasic/ To run the following code: 10 HOME 20 DEF FNMOD(NUMBER) = NUMBER - INT(NUMBER / 10) * 10 30 LET N = 135 40 LET ...
Vinicius Lima Cordeiro's user avatar
0 votes
1 answer
55 views

how to pass array(1) element of array(5,5) to a function in VB

Private Sub fun1() Dim array(5,5) As Integer someinit(array) For I As Integer = 0 To 4 Function (array(I)) Next End Sub I want to pass the arrays array(0), array(1), etc to ...
Cinverse's user avatar
  • 128
1 vote
1 answer
123 views

Porting from Santaka ZX Spectrum clone code to Z80 to compile a Santaka game - how to translate to this dialect?

This is a continuation of https://retrocomputing.stackexchange.com/questions/27077 I am trying to port my father's game for the Z80 compiler. I have managed to read up on the tutorials and other ...
Sir Muffington's user avatar
0 votes
0 answers
170 views

Recompiling an legacy BASIC program with .BAS files for 64-bit machines

I have an old program written in Microsoft compiled BASIC that consists of two .BAS files. The only executable I have is a 16-bit .exe file compiled with QuickBASIC 7.x, designed for old machines (...
Khalil Misbah's user avatar
-1 votes
2 answers
6k views

I can't find "Windows Forms App (.NET Framework)" in Visual Studio 2022 (free download)

I used VB6 a couple of decades ago, now I need VB again. Got the free download from https://visualstudio.microsoft.com/vs/community/. Started the tutorial at https://learn.microsoft.com/en-us/...
BitTwiddler's user avatar
1 vote
1 answer
63 views

Im trying to make tetris in Basic , but I have encoutered a problem which i cant seem to solve

' Define the subroutine SUB MySubroutine PRINT "Hello, world!" END SUB ' Call the subroutine CALL MySubroutine I wanted to try and make TetrisTetris in qbasic but I'm trying to figure ...
Mirazz_Boi's user avatar
0 votes
1 answer
38 views

Clearing the Console in BASIC

I've tried researching for the answer but nothing comes up. The results it showed me would say to put 'clear' or 'clr' in the code, but it doesn't work.
Charlie's user avatar

15 30 50 per page
1
2
3 4 5
58