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
41
questions
311
votes
10
answers
221k
views
What does DIM stand for in Visual Basic and BASIC?
What does Dim stand for in Visual Basic?
2
votes
8
answers
11k
views
How can I automatically populate the VBA Editor with line numbers?
I want to have line numbers in my VBA code for debugging reasons. That will allow me to know where a particular error occurred.
Is there an automatic feature for this (such as an option in settings)? ...
1
vote
1
answer
4k
views
username and password verification vb.net
My program below checks if the userName and the password is in the database( written in visual basic and uses Access database). The program works however, when I type in the userName or password in a ...
42
votes
16
answers
12k
views
Why did we bother with line numbers at all? [closed]
When you write something in BASIC, you are required to use line numbers. Like:
10 PRINT "HOME"
20 PRINT "SWEET"
30 GOTO 10
But I wonder: who came up with the idea to use line numbers at all? It is ...
7
votes
3
answers
618
views
Help: ZX81 BASIC "Peek" function
I need a way to find if the character ('<') has hit a wall (Black pixel Graphic)
-On a ZX81 game.
I'm been looking at another game... which uses code
if peek(peek 16398 +256*peek 16399) = code "*...
7
votes
1
answer
72k
views
VBA Autofilter not equal to
Sub Macro1()
‘Remove all except validated
ActiveSheet.Range("$A$1:$H$5202").AutoFilter field:=8, Criteria1:<>"Validated"
Activesheet.Range("$A$2:$O$99999").SpecialCells(xlCellTypeVisible)....
3
votes
1
answer
2k
views
How to use LibreOffice functions into Basic?
I've asked here about the good way to do so.
Now I'm trying the following code found here, and get some unexpected errors.
I suppose I'm not using it the correct way. Any idea ?
Sub Main
Dim ...
1
vote
1
answer
2k
views
Visual basic and Json.net Web request
Basically what im trying to do is make a program that list game information for league of legends.. using there API to extract data. how this works is you Search there username and it returns an ...
0
votes
1
answer
2k
views
Highlight word to find in VB.NET
I have a RichTextBox (the text where I need to find all the word corresponds to the TextBox), TextBox (for typing the word to find) and a Button, and when I click on the Button, I would like that in ...
0
votes
1
answer
218
views
Unhandled Exception when trying to add registry key
When I use the following code
My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True).SetValue(Application.ProductName, Application.ExecutablePath)
to ...
69
votes
8
answers
379k
views
Python: Is there an equivalent of mid, right, and left from BASIC?
I want to do something like this:
>>> mystring = "foo"
>>> print(mid(mystring))
Help!
27
votes
5
answers
21k
views
What does REM stand for in BASIC?
Here's a blast from the past: what does "REM", the comment marker, stand for in BASIC? What's the origin of this non-obvious term?
12
votes
1
answer
567
views
BBC Basic: Cannot plot rectangle on screen
I recently got my hands on a BBC Micro (model B), and been playing around with it as a hobby project.
I'm having some trouble with the graphics commands, and was wondering if anyone could point me in ...
9
votes
4
answers
7k
views
How can I exit Microsoft GW-BASIC, IBM BASICA, or other similar old dialects of BASIC?
Microsoft BASIC, GW-BASIC and BASICA all use a prompt that looks like this:
I can't figure out how to exit any of these. Typing END does not exit them. EXIT, QUIT, Q, Ctrl+C, and everything else that ...
5
votes
1
answer
9k
views
.net 5.0: can't use serial ports
I'm building an application for Windows, and I need to transfer data via serial port, but I can't figure out how to make it work.
I tried different declarations, different imports, but nothing.
Here ...