⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 primlist.frm

📁 一个VB小程序,能够进行大数的计算,可以作为学习的参考
💻 FRM
字号:
VERSION 5.00
Begin VB.Form PrimList 
   BackColor       =   &H00000000&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "PrimeSieve"
   ClientHeight    =   2295
   ClientLeft      =   345
   ClientTop       =   1410
   ClientWidth     =   3975
   BeginProperty Font 
      Name            =   "Fixedsys"
      Size            =   9
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H00E0E0E0&
   MaxButton       =   0   'False
   ScaleHeight     =   29.677
   ScaleLeft       =   -1
   ScaleMode       =   0  'User
   ScaleWidth      =   52.783
   Begin VB.CommandButton MakTable 
      Caption         =   "primetable"
      Height          =   495
      Left            =   2040
      TabIndex        =   2
      Top             =   240
      Width           =   1815
   End
   Begin VB.CommandButton Generate 
      Caption         =   "sieve"
      Height          =   495
      Left            =   120
      TabIndex        =   1
      Top             =   240
      Width           =   1695
   End
   Begin VB.TextBox Box 
      BackColor       =   &H00400000&
      ForeColor       =   &H00E0E0E0&
      Height          =   1215
      Left            =   120
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      TabStop         =   0   'False
      Top             =   960
      Width           =   3720
   End
   Begin VB.Menu Run 
      Caption         =   "&Run"
      Begin VB.Menu Commands 
         Caption         =   "&Go"
         Index           =   0
         Shortcut        =   {F5}
      End
      Begin VB.Menu Commands 
         Caption         =   "&Break"
         Index           =   1
         Shortcut        =   {F1}
      End
      Begin VB.Menu Commands 
         Caption         =   "&Quit"
         Index           =   2
         Shortcut        =   {F4}
      End
   End
End
Attribute VB_Name = "PrimList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_Description = "LargeInt Visual Basic adaptation demo"
'Author : Sjoerd.J.Schaper - vspickelen@zonnet.nl
'URL    : http://largeint.sourceforge.net/index.html
'Date   : 12-01-2004
'Code   : Visual Basic for Windows 5.0
Option Explicit

Private Sub Commands_Click(Index As Integer)
  Select Case Index
  Case 0
    SendKeys "~" '                    [Enter]
  Case 1
    Key = True '                       mimic the ON KEY event trap
  Case 2
    Close: End '                      [Quit]
  End Select
End Sub

Private Sub Form_Load()
Dim g As String, size As Long, sw As Integer
  sw = Init(size, g)
  WrkD = Trim$(Environ$("LARGEINT"))
  If WrkD = "" Then WrkD = ".\"
  If Right$(WrkD, 1) <> "\" Then WrkD = WrkD + "\"
End Sub

Private Sub Form_Unload(Cancel As Integer)
  Call Term: Cancel = 0
End Sub

Private Sub Generate_Click()
  If Data = "" Then Sieve 10 ^ 7
End Sub

Private Sub MakTable_Click()
  If Data = "" Then PTable
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -