Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post mOBSCENE's score sender...
Today 01:11 AM
Last post by 1x1
Today 05:17 AM
9 Replies, 46 Views
Go to first new post SPORE, PC (9/10)
09-07-2008 08:03 PM
by Googlrr
Last post by Seelyon
Today 05:10 AM
8 Replies, 188 Views
Go to first new post Whats your favorite song?
08-06-2008 09:53 PM
Last post by Seelyon
Today 05:04 AM
56 Replies, 397 Views
Go to first new post Left 4 Dead?
Today 04:59 AM
by Seelyon
Last post by Bex
Today 05:03 AM
1 Replies, 11 Views
Go to first new post MotM Nomination Thread #1
11-20-2008 08:08 PM
by nomhak
Last post by Bex
Today 05:02 AM
15 Replies, 128 Views
Reply
 
LinkBack Thread Tools Display Modes

 [vb6] "advanced" number generator source
Old 07-23-2008, 08:03 PM   #1 (permalink)
Site Programmer

Male Violent_J is offline
 
Violent_J's Avatar
 
Join Date: Nov 2006
Location: Sacramento, California
Age: 16
Posts: 933
GPoints: 469
iTrader: 5 / 100%
Violent_J Is Amongst RoyaltyViolent_J Is Amongst Royalty
Rep Power: 9
[vb6] "advanced" number generator source

Code:
Public Sub xSaveList(Filename As String, List As ListBox)
    On Error Resume Next
    Dim lngSave As Long
        If Filename$ = "" Then Exit Sub
    Open Filename$ For Output As #1
    For lngSave& = 0 To List.ListCount - 1
    Print #1, lstnum.List(lngSave&)
    Next lngSave&
    Close #1
End Sub




Private Sub cmdstart_Click()
    Dim x As Integer
    Do Until x = txtcount.Text
    Randomize
    Number = Int(txtnumber.Text * Rnd)
    lstnum.AddItem Str$(Number)
    x = x + 1
    DoEvents
    Loop
End Sub

Private Sub cmdsave_Click()
    CD.DialogTitle = "Save Listbox"
    CD.InitDir = App.Path
    CD.Flags = &H4
    CD.Filter = "Text Files (*.txt)|*.txt"
    CD.ShowSave
    Call xSaveList(CD.Filename, lstnum)
End Sub

Private Sub cmdclear_Click()
    lstnum.Clear
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Dim frmTemp As Form
    For Each frmTemp In Forms
        Unload frmTemp
        Set frmTemp = Nothing
    Next
    End
End Sub
__________________



Current rep: 110
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 05:29 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.08114600 seconds (100.00% PHP - 0% MySQL) with 19 queries