--- In [email protected], "alistair.murphy321357" 
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> I want to have a combo box that offers a drop down list of the next 
> seven days.
> I can calculate what they are and format them as I like using the 
> date plug in.
> But when I run my script I get just the literal names of the 
> variables displayed, not their values. 
> So, Inputdialog ("~StartDay = Choose a day?? 
> TodayFormatted|TodayplusOneFormatted|...|TodayplusSixFormatted", "Wha

Try Inputdialog ("~,=^StartDay = Choose a day??" ++ "TodayFormatted" 
++ "|" ... ++ TodayplusSixFormatted. "title"))
Note that you need the ,=^ to avoid commas in the date strings 
confusing PowerPro.  

Here is a another way to do it that works for any number of days.
local d = date
local StartDay
for (local i=0; i<7; i=i+1)
    local s = s ++ formatdate("longdate", date.addDays(d, i)) ++ "|"
endfor

local return = inputdialog("~,=^StartDay=Choose a 
day??"++s, "DialogTitle")



There is no limit on the number of entries in the combo box.  The 
limit of six refers to the number of different combox boxes (or check 
boxes or edit inputs).  Nonetheless, I admit that PowerPro dialogs are 
not that great.










Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to