GenuineGin
05-24-2017, 09:13 AM
New question! Still trying to come up with a solution for my last problem and in the process am making new problems (challenges?) for myself.
I was wondering if there's a way to change the value of a string based on the number of times a sub has been run.
Something along the lines of:
Sub 1 calls Sub 2
Sub 2:
If (sub does something) Then
Go back to Sub 1
Else
i = current value +1
Rerun Sub 2
End if
Go back to Sub 1
Sub 1:
If i = 1 then string = "Section A"
If i = 2 then string = "Section B" etc.
Does that make any sense?
I was wondering if there's a way to change the value of a string based on the number of times a sub has been run.
Something along the lines of:
Sub 1 calls Sub 2
Sub 2:
If (sub does something) Then
Go back to Sub 1
Else
i = current value +1
Rerun Sub 2
End if
Go back to Sub 1
Sub 1:
If i = 1 then string = "Section A"
If i = 2 then string = "Section B" etc.
Does that make any sense?