VBSRY2017
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Class quetions, comments and updates for Unit 14 2017
 
HomeLatest imagesSearchRegisterLog in

 

 Can anyone help me with arrays?

Go down 
4 posters
AuthorMessage
Gorgeous George

Gorgeous George


Posts : 2
Join date : 2017-02-08

Can anyone help me with arrays? Empty
PostSubject: Can anyone help me with arrays?   Can anyone help me with arrays? I_icon_minitimeThu 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
Amar17




Posts : 1
Join date : 2017-02-10

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

Laughing Laughing Laughing
Back to top Go down
Unknown

Unknown


Posts : 1
Join date : 2017-02-10

Can anyone help me with arrays? Empty
PostSubject: Re: Can anyone help me with arrays?   Can anyone help me with arrays? I_icon_minitimeFri 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
T627282




Posts : 1
Join date : 2017-02-10

Can anyone help me with arrays? Empty
PostSubject: Re: Can anyone help me with arrays?   Can anyone help me with arrays? I_icon_minitimeFri 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
Sponsored content





Can anyone help me with arrays? Empty
PostSubject: Re: Can anyone help me with arrays?   Can anyone help me with arrays? I_icon_minitime

Back to top Go down
 
Can anyone help me with arrays?
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: