Okay I understand that having a bunch of 0 returning to the console window is bad, and I have removed most of them from the code that I am working on, but have some that are giving me problems.
Here is the code
Code:
$t = 750
$l = 0
For $a=1 to 100 step 20
$t = $t -75
$l = 0
For $forward = $a to $a+10 step 1
$nul = Execute("$Panel"+$forward+" = $System.Panel()")
$nul = Execute("$Panel"+$forward+".BorderStyle = 1")
$nul = Execute("$Panel"+$forward+".Left = "+$l)
$nul = Execute("$Panel"+$forward+".Top = "+$t)
$nul = Execute("$Panel"+$forward+".Width = 100")
$nul = Execute("$Panel"+$forward+".Height = 75")
$nul = Execute("$Panel"+$forward+".BackColor = $System.Color.Transparent")
$nul = Execute("$nul = $Form1.Controls.Add($Panel"+$forward+")")
$l = $l + 100
Next
$t = $t -75
$l = 0
For $backward= $a+19 to $a+10 step -1
$nul = Execute("$Panel"+$backward+" = $System.Panel()")
$nul = Execute("$Panel"+$backward+".BorderStyle = 1")
$nul = Execute("$Panel"+$backward+".Left = "+$l)
$nul = Execute("$Panel"+$backward+".Top = "+$t)
$nul = Execute("$Panel"+$backward+".Width = 100")
$nul = Execute("$Panel"+$backward+".Height = 75")
$nul = Execute("$Panel"+$backward+".BackColor = $System.Color.Transparent")
$nul = Execute("$nul = $Form1.Controls.Add($Panel"+$backward+")")
$l = $l + 100
Next
Next
As you can see with the Executes I am making sure that I am supressing the return codes with the use of $Nul.
Through debugging I have found the problem is the For statement is also returning a 0 to the console.
I know that I can't just put $Nul = For ... as this creates an error in expression.
_________________________
Today is the tomorrow you worried about yesterday.