Platforms to show: All Mac Windows Linux Cross-Platform

/DataTypes/LargeNumberPrimes


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/LargeNumberPrimes

This example is the version from Wed, 18th May 2021.

Project "LargeNumberPrimes.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class MainWindow Inherits Window
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() Dim LargeNumber As LargeNumberMBS i = i + 1 LargeNumber = LargeNumberMBS.Prime(i) If LargeNumber=Nil Then list.Addrow i.ToString, "Nil" Else list.Addrow i.ToString, LargeNumber.StringValue // try second one for same length 'Dim l As LargeNumberMBS = LargeNumberMBS.Prime(i) ' 'If l <> LargeNumber Then 'list.Addrow i.ToString, l.StringValue 'End If End If End EventHandler
End Control
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
EventHandler Sub Open() End EventHandler
Property i As Integer
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project

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


The biggest plugin in space...