79 Answered Questions for the topic Visual Basic
Visual Basic Computer Programming
09/10/20
windows forms Application
Part 1: Programming – Hotel Room Sales Application1.1 Problem Statement The current pandemic has seen most hotels in the Pacific Islands on the verge of closure. The locals have been encouraged to...
more
Visual Basic
09/07/19
College math help
A cyclist rides her bike at a speed of 10 miles per hour. What is this in kilometers per hour? How many will the cyclist travel in 2 hours? In your computations, assume that 1 mike is equal to 1.6...
more
A new QBASIC IDE, (21st century one)?
I'm looking for a modern IDE/Compiler that supports QBASIC programs and has the same or almost similar syntax as of QBASIC. I want to stay as close to Qbasic as possible in terms of syntax, style,...
more
Visual Basic Basic
07/29/19
How do I run a .bas file?
I want to start coding in BASIC. However I do not know how to run a .bas file.
If someone could help me it would be deeply appreciated.
Change attributes of all files and folders in a given directory in VB.net?
In visual Basic (Visual Studio), How do I change attributes of all files and folders in a directory that user choose using FolderBrowserDialog?
Heres my code to take input:
If...
more
07/29/19
^^ binary operator in basic stamp?
We need to mantain a *.bas file (basic STAMP).
it contains the following line:
if (x^^y) then
We don't know what is the meaning of "^^" binary operator. (a single "^" is XOR and "^/" is XNOR)....
more
How to exit a gw basic program at any time?
I am creating a game and i want that if the user hit F10 or any other function key then they the program should end.
Visual Basic Basic
07/27/19
Argument is not Optional (open office basic macro)?
can you help me work out whats wrong in this function?
Function TrueSolarTime(eqtime As Double, longitude As Double, _
timeZone As Double, hours As Double, minutes As Double) As Double
...
more
07/27/19
How to Convince Programming Team to Let Go of Old Ways?
This is more of a business-oriented programming question that I can't seem to figure out how to resolve. I work with a team of programmers who have been working with BASIC for over 20 years. I was...
more
Visual Basic Basic
07/27/19
How do I display an empty string when a variable is not initialized?
Im trying to display an empty string which is pretty straight forward, how is their a way to display an empty number for an integer? i have the example below.
Sub()
Dim s As String
Dim...
more
How can I change the text of a label while running in visual basic?
Right now my label is having a text "hello", how can I change it to "world" by a button click while running in Visual Basic.
grep regex to ignore comment at end of line?
I'm trying to grep through a lot of old PowerBASIC source files in search of a variable, but I'm having trouble getting `grep` to avoid matching references to the variable in the end-of-line...
more
How to create this gw basic program?
Ok i want to know how to make a sentence appear word by word in GW BASIC.For example if the sentence is I Am Boy then how to make it appear as so "I" comes first printed then "A" ,then "m" , then B...
more
Generate random numeric & alphabetic?
I'm making a random hexadecimal generator is it possible in visual basic to make a code that randomly generates number and letters together? How would you do it? I'm really lost. I'd like to...
more
Choose For Random Strings In Commodore 64 BASIC?
I have this variable declarations on my program:
X="MAGENTA"
Y="CYAN"
Z="TAN"
A="KHAKI"
Now what I want is to randomly choose one of these and `PRINT` it. But how to do this?
Creating file with QB64?
With the following
DIM a AS INTEGER
a = 10
OPEN "myFile" FOR BINARY AS #1
PUT #1, 1, a
CLOSE #1
I get a file (myFile) with two bytes (using QB64). The first byte is indeed `0A`, but...
more
Visual Basic Basic
07/20/19
BASIC programming language getting variable?
On MSX BASIC 2.1, I get this error when compiling my basic code.
10 Input "Your name", U$
run
Syntax Error
OK
Why is this syntax incorrect?
Basic- kernel written in basic?
I have read somewhere that higher level languages are not better to create kernels, So my question is, Can we make Kernel in Basic, the simplest language?
Custom hand cursor in Visual Basic?
I am working on a my app and I managed to change the normal mouse cursor very easy using this code:
Dim cur As Icon
cur = (My.Resources.NewCursor)
Me.Cursor = New Cursor(cur.Handle)`
Now...
more
Clearing number in a Label on Text Box Change?
Just have a simple question. I have a program and in it I have a label that displays results once you calculate them, and I want the label to clear once you change the text in the input boxes....
more
Auto Find and display objects when input keywords in VB?
I'm a newbie in VB form programming. I got a task today, it seems so hard for me. basically, I have 2 forms named: Form1 and Form2. Form1 use for management info of students such as: student's...
more
Visual Basic Basic
07/19/19
BBC basic variables?
Background info for the problem: I am writing a text adventure game where the player has multiple paths to choose at each intersection/ problem.
Problem: I am attempting to use a variable from...
more
07/19/19
CreateTextFile Method is basic fails to create file at specified path?
I am using BASIC for the first time to automate a LeCroy Oscilloscope. Following examples provided by them I am attempting to create a program which uses the oscilloscope features and prints...
more
07/19/19
Comma at the end of True Basic if statement?
I've been working on translating a simulation written in True Basic to C, and eventually into CUDA. Considering I have never worked with True Basic, let alone basic, everything has been going...
more
Deleting Two Columns Simultaneously?
The following code deletes Column J only:
If Application.WorksheetFunction.Sum(Range("J:J").SpecialCells(xlCellTypeVisible)) _
=...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.