Class quetions, comments and updates for Unit 14 2017
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Can anyone help me with arrays?

View previous topic View next topic Go down 
AuthorMessage
Gorgeous George

avatar

Posts : 2
Join date : 2017-02-08

PostSubject: Can anyone help me with arrays?   Thu Feb 09, 2017 7:25 pm

Can anyone help me?

I am trying to create an array for 5 records and 2 columns for my customer list. The columns are as follows...

CustomerID and CustomerName.

I can't work out what's wrong with the following piece of code confused

Dim customers (4, 2) As String
Back to top Go down
View user profile
Amar17



Posts : 1
Join date : 2017-02-10

PostSubject: Re: Can anyone help me with arrays?   Fri Feb 10, 2017 10:07 am

Laughing Laughing Laughing
Back to top Go down
View user profile
Unknown

avatar

Posts : 1
Join date : 2017-02-10

PostSubject: Re: Can anyone help me with arrays?   Fri Feb 10, 2017 10:08 am

Change the Dim from (4,2) to (5,2) As String it should work afro afro afro
Back to top Go down
View user profile
T627282



Posts : 1
Join date : 2017-02-10

PostSubject: Re: Can anyone help me with arrays?   Fri Feb 10, 2017 10:08 am

It should be "Dim Customers (4, 1) as String"
This is because the numbers always start at 0.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Can anyone help me with arrays?   

Back to top Go down
 
Can anyone help me with arrays?
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
VBSRY2017 :: VB.Net :: Troubleshooting VBNET-
Jump to: