I pasted the code you wrote like so.
OPTION OLDBASIC
Private Sub Form_OnOpen()
Dim ReturnCode as Integer
Dim TimeCode as String
TimeCode = Inputbox ("Time limit ")
? TimeCode
ReturnCode = shell(xboard usr/games/ -fcp crafty -tc TimeCode, TRUE)
End Sub
When I tried to execute it said xboard was an undeclared variable and to use OPTION OLDBASIC
So I set it to OLDBASIC and then tried to run it and it said
'syntax error: ) missing in line 9 near pos 29'
I've looked for shell in the documentation, but can't seem to find it
![Sad :(](images/smilies/icon_e_sad.gif)
Sorry for being a bit of a noob but I am over 60 and find new stuff a bit hard to learn, but I used to write code years ago and have been trying to get back into it. I used to write stuff in qbasic, BBC basic and assembler. I'm hoping to make the transition to kbasic. I've tried many other languages but have not felt comfortable with them.