program builder Posted January 29, 2008 Posted January 29, 2008 (edited) this is the part of the code that i think is messed up. I created the buttons already next and back work just fine however when I do the next 100 it errors out, if there is no more to go to. Here is the code. Could someone please help? Func Set_Next() For $x = 1 To $children - 1 $Nwin = WinGetState($Child_[$x]) If $Nwin > 5 Then GUISetState(@SW_HIDE, $Child_[$x]) GUISetState(@SW_SHOW, $Child_[$x + 1]) Return EndIf Next EndFunc ;==>Set_Next Func Set_Back() For $x = 1 To $children - 1 $Nwin = WinGetState($Child_[$x]) If $Nwin > 5 Then GUISetState(@SW_HIDE, $Child_[$x]) GUISetState(@SW_SHOW, $Child_[$x - 1]) Return EndIf Next endfunc Func Set_next100() For $x = 1 To $children - 1 $Nwin = WinGetState($Child_[$x]) If $Nwin > 5 Then GUISetState(@SW_HIDE, $Child_[$x]) GUISetState(@SW_SHOW, $Child_[$x + 10]) Return EndIf Next endfunc Func Set_Back100() For $x = 1 To $children - 1 $Nwin = WinGetState($Child_[$x]) If $Nwin > 5 Then GUISetState(@SW_HIDE, $Child_[$x]) GUISetState(@SW_SHOW, $Child_[$x - 10]) Return EndIf Next endfunc Func _IsChecked($control) Return BitAND(GUICtrlRead($control), $GUI_CHECKED) = $GUI_CHECKED EndFunc Edited January 29, 2008 by program builder
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now