Welcome to Dream.In.Code
Become a VB Expert!

Join 149,976 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,402 people online right now. Registration is fast and FREE... Join Now!




ARRAY Refrencing

 
Reply to this topicStart new topic

ARRAY Refrencing, ???

mrcoolcurrent
27 Dec, 2007 - 11:29 AM
Post #1

New D.I.C Head
*

Joined: 27 Dec, 2007
Posts: 1

I have an array as below:


A B C D E
A 0 10 20 30 40

B 10 0 15 20 30

C 20 15 0 25 30

D 30 20 25 0 40

E 40 30 30 40 0


I also have 2 variables named;

(1) TOO (to indicate Row)
(2) FROM (to indicate collumn)

I want my variable to be the refrence for my array
e.g if TOO= 1
FROM=2
would return 10 (A,cool.gif

TOO= 3
FROM=4
would return 25 (C,D)


TOO= 3
FROM=5
would return 30 (C,E)

How can I do this Please
User is offlineProfile CardPM
+Quote Post

Jayman
RE: ARRAY Refrencing
27 Dec, 2007 - 12:57 PM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,319



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 06:52PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month