Brian_Kidd
(Brian Kidd)
September 26, 2017, 4:08am
#1
dim total_1 as integer
lbl_Dots.text = " "
'Used alt+7 for the dot… I’m trying to get the dot to show like this from a given count entered by the user, for example the user inputs 4. How do I fix this? I’m kind of lost here.
'Cyclic Bight Count
for j as integer = 1 to total_1
lbl_Dots.text = str (j)
Next
Thanks Brian
Jeff_Tullin
(Jeff Tullin)
September 26, 2017, 5:00am
#2
[quote]lbl_Dots.text =""
for j as integer = 1 to total_1
lbl_Dots.text = lbl_Dots.text + str (j)[/quote]
I think Jeff beat me too it Here is my code:
[code]Sub Action() Handles Action
//clear the label
lbl_Dots.text = “”
//determine how many dots to add
Dim total_1 as Integer = 3
//create the dot encoding in windows
Dim myChar as String
myChar = Encodings.WindowsANSI.Chr(149)
//show the dots
for j as integer = 1 to total_1
lbl_Dots.text = lbl_Dots.text + myChar
Next
End Sub
[/code]
Brian_Kidd
(Brian Kidd)
September 26, 2017, 5:35am
#4
This is what it looks like so far.
Brian
Jeff_Tullin
(Jeff Tullin)
September 26, 2017, 5:43am
#5
Serves me right for quick copy and paste.
It’s you that put the numbers there, Brian… thats what str(j) does.
If you only want * do this
lbl_Dots.text =""
for j as integer = 1 to total_1
lbl_Dots.text = lbl_Dots.text + " "
if you want a number followed by *** do this
lbl_Dots.text =str(j)
for j as integer = 1 to total_1
lbl_Dots.text = lbl_Dots.text + " "
Brian_Kidd
(Brian Kidd)
September 26, 2017, 5:47am
#6
Awesome Jeff.
I see where my initial code was wrong. Thank you kind sir.
Brian.