| Date: | Wed, 28 Dec 2011 11:01:46 -0700 |
| Reply-To: | Jon K Peck <peck@us.ibm.com> |
| Sender: | "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU> |
| From: | Jon K Peck <peck@us.ibm.com> |
| Subject: | Re: SPSS Custom dialog box /Replacing static date |
|
| In-Reply-To: | <201112281635.pBS671sx005050@waikiki.cc.uga.edu> |
| Content-Type: | multipart/alternative; |
|---|
Let's say that your dialog box has numeric edit controls named startmonth,
endmonth, startyear and endyear.
Then in the dialog box syntax you would just write
compute start = date.dmy(01,%%startmonth%%,%%startyear%%).
compute end = date.dmy(30,%%endmonth%%,%%endyear%%).
You can put range constraints on these controls, but you can't force the
starting date to be less than or equal to the ending date.
Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
peck@us.ibm.com
new phone: 720-342-5621
From: Albert Gill <albgill@YAHOO.CO.UK>
To: SPSSX-L@listserv.uga.edu
Date: 12/28/2011 10:38 AM
Subject: [SPSSX-L] SPSS Custom dialog box /Replacing static date
Sent by: "SPSSX(r) Discussion" <SPSSX-L@listserv.uga.edu>
Hi
I've been trying to automate few processes using SPSS /Python. I have
build few buttons for Month and Year using Custom Dialog Box where I would
like to get input from user for month [Jan - Dec] and year [2011, 2012,
2013 onwards]. Few things are bothering as I couldn't figure out how the
triggered values from List item would be used to add month and year in a
target list to run a query for user selected Month and Year. Infact to
replace date in code everytime it is selected by the user. Below is a
syntax where I would like to plug in the value replacing the static date
below.
compute start = date.dmy(01,04,11).
compute end = date.dmy(30,09,11).
EXECUTE.
Examples would be appreciated!!
Regards
Albert
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
[text/html]
|