Example: /DataTypes/Stack Object Test

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

/DataTypes/Stack Object Test


Required plugins for this example: MBS DataTypes Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /DataTypes/Stack Object Test

This example is the version from Sun, 17th Mar 2012.

Project "Stack Object Test.xojo_binary_project"
Class Window1 Inherits Window
EventHandler Sub Open() dim s as StackObjectMBS dim o as Object s=new StackObjectMBS if s.Deep<>0 then MsgBox "1. Deep is not working correct." end if if s.top<>nil then MsgBox "2. Top is not working correct." end if if s.pop<>nil then MsgBox "3. Pop is not working correct." end if if not s.Push(app) then MsgBox "4. Push has a problem." end if if s.Deep<>1 then MsgBox "5. Deep is not working correct." end if if s.top=nil then MsgBox "6. Top is not working correct." end if if not s.Push(self) then MsgBox "7. Push has a problem." end if if s.Deep<>2 then MsgBox "8. Deep is not working correct." end if if s.top=nil then MsgBox "9. Top is not working correct." end if o=s.pop if o<>self then MsgBox "10. Pop is not working correct." end if o=s.pop if o<>app then MsgBox "11. Pop is not working correct." end if if s.Deep<>0 then MsgBox "12. Deep is not working correct." end if if s.top<>nil then MsgBox "13. Top is not working correct." end if if s.pop<>nil then MsgBox "14. Pop is not working correct." end if if s.Deep<>0 then MsgBox "15. Deep is not working correct." end if if s.top<>nil then MsgBox "16. Top is not working correct." end if if s.Bottom<>nil then MsgBox "17. Bottom is not working correct." end if if s.pop<>nil then MsgBox "18. Pop is not working correct." end if if s.PopBottom<>nil then MsgBox "19. Pop is not working correct." end if if not s.Push(app) then MsgBox "20. Push has a problem." end if if s.Deep<>1 then MsgBox "21. Deep is not working correct." end if if s.top=nil then MsgBox "22. Top is not working correct." end if if s.Bottom=nil then MsgBox "23. Top is not working correct." end if if not s.Push(self) then MsgBox "24. Push has a problem." end if if s.Deep<>2 then MsgBox "25. Deep is not working correct." end if if s.top=nil then MsgBox "26. Top is not working correct." end if if s.Bottom=nil then MsgBox "27. Top is not working correct." end if if s.top<>self then MsgBox "28 Top is not working correct." end if if s.Bottom<>app then MsgBox "29 Top is not working correct." end if o=s.PopBottom if o<>app then MsgBox "30. Pop is not working correct." end if o=s.PopBottom if o<>self then MsgBox "31. Pop is not working correct." end if if s.Deep<>0 then MsgBox "32. Deep is not working correct." end if if s.top<>nil then MsgBox "33. Top is not working correct." end if if s.pop<>nil then MsgBox "34. Pop is not working correct." end if if s.Bottom<>nil then MsgBox "35. Top is not working correct." end if if s.PopBottom<>nil then MsgBox "36. Pop is not working correct." end if MsgBox "If no msgbox before this one, everything is correct!" End EventHandler
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

The items on this page are in the following plugins: MBS DataTypes Plugin.


💬 Ask a question or report a problem