Skip to main content

All Questions

Tagged with
0 votes
0 answers
17 views

How to non-Repeat the code that do the same thing on Visual Basic

I have a question about repeating code. I made an example with a Random Number Generator Public Class Form1 Dim Random As New Random Dim Value(20) As Integer Dim Number As Integer ...
Artur Strutzel's user avatar
2 votes
0 answers
112 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 ...
robert Esre's user avatar
2 votes
4 answers
169 views

FOR/NEXT with multiple next commands

I have to program a calculation of pi in BASIC. To do so, i use the FOR ... TO ... STEP construction of BASIC. Also, i am using 2 NEXT commands, the last one fails. It looks like it only fails as the ...
MSauer's user avatar
  • 148
0 votes
1 answer
1k views

Visual Basic dividing

I'm on visual basic and I'm reading through some piece of code my teacher wrote, he had this chunck of code: Private Sub btnDividing_Click(sender As Object, e As EventArgs) Handles btnDividing.Click ...
KoyaCho's user avatar
  • 155
0 votes
1 answer
33 views

Visual Basic 6 :: Cover all equations to get a specific outcome

My goal is to cover all possible equations (of whole numbers) to get to a specific number and extract the results to a text file. Here's my current VB6 code: Private Sub Form_Load() Dim myFile, ...
PUG's user avatar
  • 351
-1 votes
1 answer
866 views

How to Encrypt and Decrypt multiple text and image files within folders

Encryption and decryption for a single .txt file using the following code works: Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles SelectFile.Click 'Create a File ...
user avatar
0 votes
0 answers
113 views

Loops with arrays in Visual Basic

I'm not a programmer. 15 years in IT but I don't write code. Taking this class in Visual Basic to expand my horizons and while I'm doing ok, sometimes I get stumped. We are working on arrays and the ...
Trytondude's user avatar
0 votes
0 answers
251 views

XOR codin text Macro LibreOffice

I have an assignment to make a macro in LibreOffice that I have to code a text using XOR operations. the instructions are following. izracunajHash function (password zacetni_hash) - This function ...
Domen Lisjak's user avatar
-1 votes
1 answer
48 views

(basic) For Next Loop: 1 To 9 Step 1 (list 9 lines of calculations increment up one multiplier each new line)

I'm trying to display 9 lines of calculations and increment the multiplier each new line Dim dblInputNumber As Double Dim dblResult As Double Double.TryParse(txtInputNumber.Text, ...
Blattinum's user avatar
0 votes
1 answer
148 views

Calculate Average of Each Series of Numbers From Text File

Currently, the code I have pulls the data from the txt file and places the list of numbers into a list box. I now need to edit the program to calculate the average of each series of numbers, with each ...
Stromboli's user avatar
1 vote
2 answers
84 views

Going through a label loop

I am having trouble going through a loop that I created through a label. The loop is supposed to go through 100 times and print out the according messages if it is divisible by 3, by 5, or if its ...
user1881401's user avatar
0 votes
1 answer
85 views

looping in vba - basic

Hopefully this is relatively straight forward but I am new to VBA. I have two sheets - Sheet1 and Sheet2. In Sheet1 cell B2 I have a blank cell which when populated with a number generates an output ...
user3491279's user avatar