Forum Discussion
- ory_zContributor
Generally speaking when writing scripts you don't need labels and gotos because it's much easier to construct logical junctions, repeat code (via functions) etc.
I'd say that if you are looking for a way to accomplish this you should try changing your way of thinking when composing scripts. If you give a more concrete example in pseudo code I may be able to answer with a solution example.
Also see - http://community.smartbear.com/t5/Functional-Web-Testing/Goto-in-VBScript/td-p/69616
- m_essaidValued Contributor
Hi Kamal,
You really need to avoid GOTO instruction. GOTO is forbidden now in programmation schools.
As it was said, the script must begin at a specific point and end at another. Simply, naturaly.
To make things GOTO do, create methods, create variables, call them, use loops and such things.
But GOTO is the devil.
Mehdi