Lesson 2 Control flow Sequence


#1

Hi All,

Im looking for help, Im doing the practical of the guessing game in sequence, I am just not sure where I am going wrong, I am doing almost the same as the flow chart practical, however I am not sure if I am using the loop correctly , also in the practical flow chart you changed the input dialog to hint, for some reason it wont find my variable that i created for hint (sorry i am complete newbie)

If anyone could help me i would very much appreciate it.


#2

It seems like your input dialog should be inside the body of the DoWhile loop, right before your if condition.

You have to pass the Label property with hint variable.

Thanks,
Rammohan B.


#3

Thank you Rammohan B. ; I´ve tried that I´ve moved it inside, but now it seems i cant use any of the variables in the do while so the condition for do while wouldnt work?


#4

Whats the error that you are seeing?


#5

"Compiler errors encountered processing expression “random <> guess” guess is not declared . It may be inacessible due to its protection level.


#6

Click on Varaiables tab and check the scrope of those variables. Change the scope such that the while loop is able to access it.

Thanks,
Rammohan B.


#7

Thank you!!! It worked!