|Date: ||Wed, 28 Dec 2011 11:01:46 -0700|
|Reply-To: ||Jon K Peck <firstname.lastname@example.org>|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>|
|From: ||Jon K Peck <email@example.com>|
|Subject: ||Re: SPSS Custom dialog box /Replacing static date|
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
new phone: 720-342-5621
From: Albert Gill <albgill@YAHOO.CO.UK>
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>
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
compute start = date.dmy(01,04,11).
compute end = date.dmy(30,09,11).
Examples would be appreciated!!
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
For a list of commands to manage subscriptions, send the command