Share this post

Link to post

Share on other sites

Xandy 264

Xandy 264

try replacing dim with global on declaration of $hboard[][] or pass the array byref by changing the func InitializeBoard() to func InitializeBoard(byref $hboard) then pass $hboard in the call to InitializeBoard

edit: make all of the arrays you're using in InitializeBoard global or pass them all byref to the function, if your changing the values of the arrays and expect to keep the results.

Looks good by the way. Let me know if that's not the answer, but it looks like the scope is wrong for the $hboard to be usable. Other than that it looks good.

The control graphic will likely be displayed but the control_id or handle would be lost. So you wouldn't be able to click the button.