I'm sure there is a cunning technique that I do not know about helping this, but I Also to find the nearest example, so I'm hoping someone can help me point in the right direction.
I have some global variables and I want to edit from within a substraton based on what variables they are passed in.
Actually, this idea (though in practice, is very large):
& lt; Script language = "VBSScript" & gt; Game 1 von = 0 Game 1 Fulle = 0 Game 2 Won = 0 Game 2 Fulls = 0 Sub Game 11 PlayerMov 1.1 and Sub Sub Game 12 PlayerMav 1,2 and Sub Sub Game 21 PlayMere 2.1 End and All Sub Game 22 Player 2 over 2 end and sub sub player mav (first number, second number) if [code to check game winning] then game [firstnumber] g = 1 end if end subs / lieutenant; / Script & gt; & Lt; Body & gt; & Lt; Input id = run button type = "button" value = "1.1" onClick = "Game11">
Input ID = Run button type =" button "=" button "value =" 2.1 "onClick =" Game21 "gt; & lt; br & gt; Input ID = Run button type =" button "Value =" 2.2 "onClick =" Game22 & gt; & Lt; Br> & Lt; / Body & gt; As you can see, I want to edit the first number of variables passed to the sub-player, but whatever I am trying to do, I edit the current editions Instead of wanting to retain new variables, a global one.
Is there a clever way to edit this without any help from the IF / CASE statement?
Thanks guys!
I can not agree with the statement "Can not do this with vbscript" but take a look.
game1won = 0 playerMahoo 1 MSBbox game1 von sub playerMahowa (first number) ExecuteGlobal "game" & amp; First number & amp; "Win = 1" ending sub
No comments:
Post a Comment