Re: Q on the Array function...
- From: rkc <rkc@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 18:30:38 GMT
MLH wrote:
How would I modify the following to achieve a 2-dimensional array?
Dim MyWeek, MyDay
MyWeek = Array("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun")
' Return values assume lower bound set to 1 (using Option Base
' statement).
MyDay = MyWeek(2) ' MyDay contains "Tue".
MyDay = MyWeek(4) ' MyDay contains "Thu".
In other words, I want the array to hold
"Monday","Segunda-feira"
"Tuesday","Terca-feira"
"Wednesday","Quarta-feira"
"Thursday","Quinta-feira"
Why bother?
Put the data in a table and forget the array.
Or use a collection with Monday as the key and Segunda-feira
as the value.
Or create a UDT with members for English and Portuguese and
whatever other language you want and put them in a collection.
Or just about anything but a muli-dimensional array.
.
- References:
- Q on the Array function...
- From: MLH
- Q on the Array function...
- Prev by Date: Re: adding a text string to data from one field in one database to another
- Next by Date: Re: Find a record when Form opens
- Previous by thread: Q on the Array function...
- Next by thread: Using one report for different queries
- Index(es):
Relevant Pages
|