Results 1 to 2 of 2
  1. #1

    VB: Functions... help?

    OK, im working on a tic tac toe game. What I want to do, in order to keep clean code is to write a function.

    The function would be to check for a win. for example,

    Function wincheck()
    If sqr1a_x And sqr1b_x And sqr1c_x = True Then
    MsgBox "YOU WIN!"
    .... etc....
    End If
    End Function

    How do i call this function in the code? For example, after every turn. If im completely off, and you have no idea what im talking aobut... let me know

  2. #2
    OK nevermind, i got it you use private subs, and then use the "call subname() "

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts