mardi 8 novembre 2022

Writing program for guessing a number in Small basic but the program won't run

this is the code I'm using

Sub btnguess_Click
  
  randNum = Math.GetRandomNumber(10)
  FCControls.GetText(txtCels)
  
  If txtCels = randNum Then
    lblanswer = "That's correct the Madame would like to hire you!"
  ElseIf txtCels <1 or >10 Then
    lblanswer = "Please enter number between 1 and 10"
  Elseif txtCels <> randNum Then
    lblanswer = "That's incorrect the Madame asks you to leave."
    EndIf
  
endsub
  

error that I'm getting : 45,24:Expected a condition here.

I'm not sure what I'm missing here




Aucun commentaire:

Enregistrer un commentaire