Hi all
Please help with error on the line with the last return
"Compiling code. Error
Error parsing program.
Error description: Missing Keyword: end sub
Occurred on line: 280
End If"
Sub Globals
Type indexn (ind1 As Int, ind2 As Int)
-----
End Sub
Sub Check_Move(tox As Int, sun As Int) As indexn
If psblL.ind1=tox AND psblL.ind2=sun Then Return psblL
Else
If psblR.ind1=tox AND psblR.ind2=sun Then Return psblR
Else
If psblB.ind1=tox AND psblB.ind2=sun Then Return psblB
Else
If psblT.ind1=tox AND psblT.ind2=sun Then Return psblT
Else
psblL.ind1=-1
psblL.ind2=-1
Return psblL
End If ------ error in this line
End If
End If
End If
End Sub
thanks for replying
Please help with error on the line with the last return
"Compiling code. Error
Error parsing program.
Error description: Missing Keyword: end sub
Occurred on line: 280
End If"
Sub Globals
Type indexn (ind1 As Int, ind2 As Int)
-----
End Sub
Sub Check_Move(tox As Int, sun As Int) As indexn
If psblL.ind1=tox AND psblL.ind2=sun Then Return psblL
Else
If psblR.ind1=tox AND psblR.ind2=sun Then Return psblR
Else
If psblB.ind1=tox AND psblB.ind2=sun Then Return psblB
Else
If psblT.ind1=tox AND psblT.ind2=sun Then Return psblT
Else
psblL.ind1=-1
psblL.ind2=-1
Return psblL
End If ------ error in this line
End If
End If
End If
End Sub
thanks for replying
Last edited: