Click here to Skip to main content
15,900,108 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralAssigning date in VB for Access database Pin
nitingonsalves27-Feb-03 2:48
nitingonsalves27-Feb-03 2:48 
GeneralRe: Assigning date in VB for Access database Pin
lagbolt27-Feb-03 20:50
lagbolt27-Feb-03 20:50 
Generalform unload Pin
r i s h a b h s26-Feb-03 23:44
r i s h a b h s26-Feb-03 23:44 
GeneralRe: form unload Pin
Jerome Conus27-Feb-03 20:23
Jerome Conus27-Feb-03 20:23 
Generalinstance checking Pin
r i s h a b h s26-Feb-03 18:34
r i s h a b h s26-Feb-03 18:34 
GeneralReturning more than 1 value from a function Pin
xBlitzerx26-Feb-03 13:48
xBlitzerx26-Feb-03 13:48 
GeneralRe: Returning more than 1 value from a function Pin
Ray Cassick26-Feb-03 15:54
Ray Cassick26-Feb-03 15:54 
GeneralRe: Returning more than 1 value from a function Pin
xBlitzerx27-Feb-03 15:27
xBlitzerx27-Feb-03 15:27 
Thanks Ray that kinda helps...
but i'm still not sure why i'm doing that...
Maybe i didnt explain it good enought..
I making an array, that has 3 members (name, genre, rating)
Overall i want a little menu
1) Add a game
2) Display a game
3) Show average rating of games
4) Quit

Something like that..so first i made a sub prodecure that displayed this menu (so i can call it after each option the user makes), that was all good
So the sub main looks like this so far

Private Sub Main()
Dim gamesArray() as Game 'Game is a declared structure above sub main)
Dim choice as integer
call DisplayMainMenu()
choice = console.readline()
End Sub

So then I started to do this:

Private Sub Main()
Dim gamesArray() as Game 'Game is a declared structure above sub main)
Dim choice as integer
call DisplayMainMenu()
choice = console.readline()
If choice = 1 then
* call AddGame()
End if
End Sub

Private Function AddGame()
console.write("Enter the game name: ")
name = console.readline()
console.write("Enter the genre: ")
genre = console.readline()
console.write("Enter the games rating: ")
rating = console.readline()
End Function

*** So my question being, if i get the info for the game in the function..
i somehow need to get all 3 pieces back up into the array...

Hope this clarifies things...Big Grin | :-D

EDIT: Sorry forgot the IF
______________________________________________
"I'm not me when I dream...anymore." -TRUSTcompany
QuestionHow to assign a date to a date object Pin
nitingonsalves26-Feb-03 9:35
nitingonsalves26-Feb-03 9:35 
AnswerRe: How to assign a date to a date object Pin
Hesham Amin26-Feb-03 22:16
Hesham Amin26-Feb-03 22:16 
GeneralToolbox items grayed out Pin
snaayk26-Feb-03 8:00
snaayk26-Feb-03 8:00 
GeneralRe: Toolbox items grayed out Pin
Hesham Amin26-Feb-03 22:20
Hesham Amin26-Feb-03 22:20 
GeneralRe: Toolbox items grayed out Pin
snaayk27-Feb-03 1:41
snaayk27-Feb-03 1:41 
GeneralUse of apostrophe in string Pin
mcm26-Feb-03 4:43
mcm26-Feb-03 4:43 
GeneralRe: Use of apostrophe in string Pin
paul_b26-Feb-03 4:53
paul_b26-Feb-03 4:53 
GeneralRe: Use of apostrophe in string Pin
Brian Lehmann3-Mar-03 10:22
Brian Lehmann3-Mar-03 10:22 
GeneralRe: Use of apostrophe in string Pin
RichardGrimmer13-Mar-03 23:54
RichardGrimmer13-Mar-03 23:54 
GeneralProblems deploying app Pin
paul_b26-Feb-03 4:32
paul_b26-Feb-03 4:32 
General"Operation not allowed when object is open" Pin
mcm26-Feb-03 4:21
mcm26-Feb-03 4:21 
GeneralRe: "Operation not allowed when object is open" Pin
RHYS26-Feb-03 6:00
RHYS26-Feb-03 6:00 
GeneralRe: "Operation not allowed when object is open" Pin
RichardGrimmer13-Mar-03 23:59
RichardGrimmer13-Mar-03 23:59 
General2 questions Pin
r i s h a b h s25-Feb-03 23:49
r i s h a b h s25-Feb-03 23:49 
GeneralRe: 2 questions Pin
paul_b26-Feb-03 4:49
paul_b26-Feb-03 4:49 
GeneralAccess a folders properties programmatically Pin
RHYS25-Feb-03 21:40
RHYS25-Feb-03 21:40 
GeneralGood Book on CrystalReports with VB Pin
Vasudevan Deepak Kumar25-Feb-03 18:17
Vasudevan Deepak Kumar25-Feb-03 18:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.