User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 374,007 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,907 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 543 | Replies: 1 | Solved
Reply
Join Date: Mar 2008
Posts: 17
Reputation: clueless101 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
clueless101 clueless101 is offline Offline
Newbie Poster

1-D Arrays

  #1  
Apr 1st, 2008
This is my first exposure to arrays. I need to create a 1-dimensional string-based array with five elements. I need to assign 5 different names to the array. Use a for loop to iterate through each of the array elements, displaying the names in a message box.

I would truly appreciate it if someone could help me out on this...

Option Compare Database

Private Sub cmdPopulate_Click()
Dim myStringArray(1 To 5) As String
Dim x(1)
Dim y(2)
Dim x(3)
Dim x(4)
Dim x(5)

For x = 1 To 5

myStringArray(x) = "The value of myStringArray is " & x

Next x

For x = 1 To 5

MsgBox "AddItem myStringArray (x)"

Next x

End Sub
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Posts: 17
Reputation: clueless101 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
clueless101 clueless101 is offline Offline
Newbie Poster

Re: 1-D Arrays

  #2  
Apr 1st, 2008
I figured this one out.

Thanks anyway!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb MS Access and FileMaker Pro Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 10:38 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC