Posted on 2001-07-26
I'm a little confused by multidimensional arrays.
Bear with me I'm currently going through the process of figuring out the boundaries of notes.
(which is a painful process)... I apologise if this is confusing to read, but I am confused in writing it. :o)
i.e. If I have an array listed as MyArray(1,1)
MyArray(0,0) = "Fred, Manly"
MyArray(0,1) = "Fred, Man"
MyArray(1,0) = "Rita, Womanly"
MyArray(1,1) = "Rita, Woman"
I have the following questions:
Can I change an entry without needing to define both values again? Lets say I want to change Fred to Bob, must I enter
MyArray(0,0) = "Bob, Manly"
MyArray(0,1) = "Bob, Man"
Or is there a way to change only MyArray(0)Fred to Bob without needing to re-define the other entries?
Alternatively can they be accessed individually? Output to a field on a form displaying Doc.Output = MyArray(1,0) would give: Rita, Womanly
Can I just access the second value?
Basically what I would like to achieve is that I could have one field representing the person i.e. Rita and another field representing the entries associated with her. i.e. Womanly and Woman.
Could someone please enligten my understanding (or lack thereof).