View Single Post
  #8 (permalink)  
Old April 25th, 2016, 04:47 PM
Maximilian Maximilian is offline
Registered User
Points: 16, Level: 1
Points: 16, Level: 1 Points: 16, Level: 1 Points: 16, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2016
Location: Buffalo, NY
Posts: 4
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Dr. Stephens, I have run your program in Visual Studio, and it looks and works so beautifully, it makes me want to cry, not least because I don't know most of the functions in it. I have to keep reading the book!

Just for my education, if I may ask two very basic questions, how can it be that the variable "last_letter" is first defined merely as

Code:
Dim last_letter As Integer = 0
and is next used for numeric comparison with a much more specifically defined "new_letter":

Code:
If (new_letter < last_letter) Then
?

Just where did we tell the program that "last_letter" is the previous numeric value in the string?

Second, I think you are using "Return" function instead of my "GoTo." To which point in the code exactly does it return?

As always, thank you very much for the instruction!
Reply With Quote