Hi Guys,
I begin programming,
and i still have problems with beginning.
I want to know the correct architecture of a program with multiple choices.
Example:
'The program starts here
if Choice1 goto choice1Sub
if Choice2 goto Choice2Sub
if Choice3 goto Choice3Sub
Endif
Choice1Sub:
{Sous programme}
return
Choice2Sub:
{Sous programme}
return
Choice3Sub:
{Sous programme}
return
Questions :
Will the program read all subroutines each times or he will go to subroutines only if Choice1, 2 or 3 is validated ?
Do i need to put "return" at the end of each subroutine to come back to the beginning of the program ?
Thanks
Olivier
Bookmarks