Advertisement
gabbyshimoni

sami-script2

Dec 3rd, 2019
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MsgBox "Wellcome to Robotics Lab"
  2. Function opening()
  3. opening = InputBox("Please enter a number")
  4. MsgBox "You have selected cube number:" & opening
  5. End Function
  6.  
  7. Function action()
  8. action = = InputBox("Which action would you like to perform" & vbCrLf & "1: something" & vbCrLf & "2: something else" & vbCrLf & "3: another thing")
  9. MsgBox "You have selected action number:" & action
  10. End Function
  11.  
  12. Function wantMore()
  13. wantMore = InputBox("Do you want more fun? 1-Yes 2-No")
  14. if wantMore=1 Then 'everything that comes after the apostrophe is a comment
  15. MsgBox "Starting over"
  16. Elseif wantMore=0 Then
  17. MsgBox "Why?!"
  18. Else
  19. MsgBox "Wrong input!!! Exiting"
  20. End if
  21.  
  22. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement