home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Get Free Memory"
- ClientHeight = 1230
- ClientLeft = 1335
- ClientTop = 1980
- ClientWidth = 3180
- Height = 1635
- Left = 1275
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 1230
- ScaleWidth = 3180
- Top = 1635
- Width = 3300
- Begin CommandButton Command1
- Caption = "Get amount of Free Memory"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 720
- Width = 2775
- End
- Begin TextBox Text1
- Height = 375
- Left = 1320
- TabIndex = 1
- Top = 120
- Width = 1575
- End
- Begin Label Label1
- Caption = "Free memory"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 1215
- End
- Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags As Integer) As Long
- Sub Command1_Click ()
- Memory& = GetFreeSpace(0)
- Text1.Text = Format$(Memory&, "##,###,###") + " bytes"
- End Sub
-