Re: VB6:- Some help required [message #441437 is a reply to message #440936] |
Mon, 13 December 2010 12:25 |
|
Hypnos
Messages: 684 Registered: August 2009 Location: Scotland
Karma:
|
Colonel |
|
|
Update: Was a simple typo which you changed in the spoiler.
Here's how I done it.
Toggle Spoiler
Private Sub OptionThree(ByRef cost() As Integer, capacity() As Integer, graphics_card() As String)
'Initialises Option Three. (Prompts user for input of Minimum RAM and Minimum Cost then displays the cards which meet specification.)
Dim MinimumRAM As Integer
Dim MaximumCost As Integer
Call Information
MinimumRAM = InputBox("Please enter a RAM capacity between 1 and 3")
MaximumCost = InputBox("Please enter the maximum cost.")
picdisplay.Print "Graphics Card"; vbTab; "Capacity"; Tab(27); "Clock Speed"; vbTab; "Cost"
For index = 1 To 5
If capacity(index) >= MinimumRAM And cost(index) <= MaximumCost Then
picdisplay.Print
picdisplay.Print graphics_card(index); Tab(17); capacity(index); Tab(27); clock_speed(index); Tab(40); cost(index)
End If
Next
End Sub
I also added passing parameters to make it more efficient.
Caveman wrote on Fri, 21 January 2011 08:26 | Well this topic is still going on. I have to say I haven't watched much Anime recently (maybe a year or so) the last thing I saw was GITS (for the third time)
Im not too sure whether I just dont enjoy Anime anymore or whether its just I dont have time really to shit and watch it.
|
|
|
|