Kerry, Couple of followup questions:
I have three different things I want to set here: a list, a string and a string. Are you saying that after setting the first item: pListOfSubMenusToCheck, which has a default format of #list and adding all those properties to the propList, that I can't reset theDefault to a #string and add that to the propList? Why not? In short, if I want to add a custom list as a property to a behavior, along with other items, what is the best way to do that? Thanks in advance, GSB Geoff, see my comments in-line. I've snipped a bit for brevity. > I'm having a problem with a behavior I wrote. Seems for some > reason Director in "sometimes" converting my list to a > string. I have not been able to track down why. > on getPropertyDescriptionList me > > set propList = [:] > > set theProp = #pListOfSubMenusToCheck > set theDefault = ["A","B"] > set theComment = "List of gTrackerItems to Check before > marking this screen done:" > set theformat = #list > setAProp(proplist, theProp,\ > [#default:theDefault,#comment:theComment,#format:theFormat]) > > set theProp = #pCustomEvent > set theDefault = "nothing" <--- here At this point, you're setting theDefault to a string, while you had it set to a list of strings before (["A", "B"]) If you want to keep it as a list, try: theDefault = ["nothing"] > set theComment = "The custom event you'd like to happen > when done, if any:" > set theformat = #string > setAProp(proplist, theProp,\ > [#default:theDefault,#comment:theComment,#format:theFormat]) And here, you're adding a string, not a list, as the value of the #default property. Geoffrey S. Baker Multimedia Programmer Accelera 2400 Boston Street Suite 310 Baltimore, Maryland 21224 Toll Free: 866-422-2353 ext. 1110 www.accelera.com <NOSPAM>gbaker at accelera dot com</NOSPAM> [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
