Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Jacob Farber #1
groups of dates
Hi,
I have a list of objects with dates, and I need to put them into groups per
year. Is there any way to creat something where I can interchange variables
with properties? I need a system like
currentYear = "_"&dateObject.year&""
put archiveList.currentYear
and this would return a list of items inside the list
archiveList.currentYear
I already have archiveList = [#_1999, #_2000, #_2001] etc etc.
How do I go about this???
Im so lost,
Jacob
Jacob Farber Guest
-
Permission groups
We cannot connect to our site as we have no permsion groups showing. Does anyone know how we recreate the administrator permission group? -
I'm still confused by the difference between Global Groups and Domain Local Groups
Experts, I'm still confused by the difference between Global Groups and Domain Local Groups. I mean, they seem to me to accomplish the very same... -
Getting AD Groups
Hi Gurus, I seek you expert advice on the following scenario:- Environment: Windows 2003, IIS6, Windows Integrated Authentication, .Net... -
Supplementary groups
Is there a function for setting supllementary groups? I don't see a method documented in Process. I want the equivalent of man (2) setgroups: ... -
OT about CSS (other groups wont help)
hello all. this is some CSS code that I have and it works great with links. however, is it possible to achieve the same effect for images, buttons,... -
LukeWig #2
Re: groups of dates
On 2/12/03 8:39 AM, in article bqgch9$rsn$1@forums.macromedia.com, "Jacob
Farber" <jacobfarber@sympatico.ca> wrote:
Hi,> Hi,
> I have a list of objects with dates, and I need to put them into groups per
> year. Is there any way to creat something where I can interchange variables
> with properties? I need a system like
>
> currentYear = "_"&dateObject.year&""
> put archiveList.currentYear
>
> and this would return a list of items inside the list
> archiveList.currentYear
> I already have archiveList = [#_1999, #_2000, #_2001] etc etc.
I'm not sure if I understand your question properly, but if you want to
group objects together with a date, you could use a property list like this
MyList = [:]
WhatYear = dateObject.year
If voidP(MyList .getAprop(whatYear) then
-- make a new group for this year
myList.addProp(whatYear, [])
End if
-- now add the dateObject to the 'group list'
GroupList = myList.getAProp(whatYear)
GroupList.add(dateObject)
Doing this will give you a list like
[1999: [obj1, obj2], 2000: [obj3, obj4]...etc ]
Luke
LukeWig Guest
-
Jacob Farber #3
Re: groups of dates
Thank you- I will try that. However, I managed to manually creat an array
where numbers were properties, like you list
[1999: [obj1, obj2], 2000: [obj3, obj4]...etc ]
but- If I tried to call something like
put myList.1999
it would give me a messed up array...did this not happen for you?
Jacob
"LukeWig" <lukewig@hotmail.com> wrote in message
news:BBF21879.58D4%lukewig@hotmail.com...per> On 2/12/03 8:39 AM, in article bqgch9$rsn$1@forums.macromedia.com, "Jacob
> Farber" <jacobfarber@sympatico.ca> wrote:
>> > Hi,
> > I have a list of objects with dates, and I need to put them into groupsvariables> > year. Is there any way to creat something where I can interchangethis>> > with properties? I need a system like
> >
> > currentYear = "_"&dateObject.year&""
> > put archiveList.currentYear
> >
> > and this would return a list of items inside the list
> > archiveList.currentYear
> > I already have archiveList = [#_1999, #_2000, #_2001] etc etc.
> Hi,
>
> I'm not sure if I understand your question properly, but if you want to
> group objects together with a date, you could use a property list like>
> MyList = [:]
> WhatYear = dateObject.year
> If voidP(MyList .getAprop(whatYear) then
> -- make a new group for this year
> myList.addProp(whatYear, [])
> End if
> -- now add the dateObject to the 'group list'
> GroupList = myList.getAProp(whatYear)
> GroupList.add(dateObject)
>
> Doing this will give you a list like
> [1999: [obj1, obj2], 2000: [obj3, obj4]...etc ]
>
> Luke
>
>
Jacob Farber Guest
-
LukeWig #4
Re: groups of dates
Yeah - its one of the 'gotchas' using integers as properties in property> Thank you- I will try that. However, I managed to manually creat an array
> where numbers were properties, like you list
> [1999: [obj1, obj2], 2000: [obj3, obj4]...etc ]
> but- If I tried to call something like
> put myList.1999
> it would give me a messed up array...did this not happen for you?
> Jacob
lists... You cannot access the value using syntax like
pList.Propname
pList[PropName]
You have to use the syntax
pList.getaProp(propName)
Luke
LukeWig Guest



Reply With Quote

