41 Answered Questions for the topic Basic

05/06/22

#### Find the general solution of the following differential equations.

Find the general solution of the following differential equations.1. dy/dx= -x+1/2(y+3)2. dy/dx= y²(1+ ex )

03/30/22

08/03/19

#### 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
Basic Visual 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.

07/29/19

#### 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/28/19

#### 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.
Basic Visual 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
Basic Visual 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

07/27/19

#### 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.

07/27/19

#### 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

07/27/19

#### 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

07/27/19

#### 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

07/27/19

#### 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?

07/21/19

#### 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
Basic Visual 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?

07/19/19

#### 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?

07/19/19

#### 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

07/19/19

#### 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

07/19/19

#### 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
Basic Visual 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

07/12/19

#### Deleting Two Columns Simultaneously?

The following code deletes Column J only: If Application.WorksheetFunction.Sum(Range("J:J").SpecialCells(xlCellTypeVisible)) _ =... more

07/11/19

#### How to declare a constant in BASIC?

Unfortunately, I’m having trouble figuring out how to do some things, because Google is clogged with tutorials of “programming basics” and Visual Basic. So I have to ask: in old-skool BASIC, I... more

## Still looking for help? Get the right answer, fast.

Get a free answer to a quick problem.
Most questions answered within 4 hours.

#### OR

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.