Lesson 2 Control flow Sequence

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.

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.

Rammohan B.

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?

Whats the error that you are seeing?

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

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

Rammohan B.

Thank you!!! It worked!

1 Like