BobPaw wrote:I have tried to make a brute force loop that will go through all symbols or letters and PRINT them, here is my attempt:
Code: Select all
Dim As String buffer
Dim As Integer a
Do
a += 1
For b As Integer = 1 To a
buffer = ""
For i As Integer = 32 To 126
Cls
buffer &= chr(i)
Print "Folder: " & buffer
Sleep 100, 1
Next
Next
Loop
'32 - 126
NOT A CRITICISM.
I'm confused as to what your code is intended to do after several thousand loops.
What is the purpose of the "DO...LOOP"
What is supposed to happen when a> 10 or 100 or 1 million ?
I do not understand how you are supposed to exit the Do...Loop
What is the reason for b = 1 to a ?
You are not saving the previous buffer contents.
b = 1 to 1 : b= 1 to 2 : b = 1 to 3 ...
Since you are not using the "buffer" for anything else,
why reset it at the end of the inner loop?
I'm not indicating anything is wrong with the above program or what you are trying to do.
What I am wanting to know is what are you trying to do?
A few explanations would help.
Simply stated: I do not understand why you want to repeat the process so many times?
Is this part of a timing procedure?
Code: Select all
Dim As String buffer = ""
For i As Integer = 32 To 126
buffer &= chr(i)
next i
Print "Folder: " & buffer
Sleep