Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: Re: RE: Dialogue box


From   "Solorzano Mosquera, Jenniffer" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Re: RE: Dialogue box
Date   Wed, 18 Mar 2009 15:06:40 -0400

Thanks a loottttttttt!!! It worked!!!!!!!!!!!!!!!!!!!!!! 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sergiy Radyakin
Sent: Friday, March 13, 2009 11:01 AM
To: [email protected]
Subject: Re: st: RE: Re: RE: Dialogue box

Dear Jennifer,

Stata is not particularly verbose with error messages in dialogs, so when it encounters an error in a dialog program (like your "command") it just interrupts execution at that point, often without any notification. There are [undocumented] ways to make it more user-friendly though. In your case:
>>>>>>>>>EDIT transfa28    190 @   60   20, label(transfe28)<<<<<<<<<<
is declared in the dialog definitions, but program "command" refers to:
>>>>>>>main.transfe28<<<<<<<<<<

Hence Stata tells me:
object main.transfe28 not found
error 9016

Fixing is easy, change "transfa28" to "transfe28"

Best regards,
   Sergiy Radyakin

On Fri, Mar 13, 2009 at 10:00 AM, Solorzano Mosquera, Jenniffer <[email protected]> wrote:
> Thanks!!! I could fix it!!! Here it is. But... Now whenever I click on "Aceptar" it doesn't do anything!! How can I know what the error is?
>
> VERSION 9.0
> POSITION . . 500 800
> DIALOG main, label("republicadominicana") tabtitle("Variables") BEGIN
>
> GROUPBOX variables   5  68  520  200, label("Escenarios, grupos de 
> ninos, alcance")
>    TEXT lab1        20  +25 610  10, label("Escenario (SIUBEN 1, 2 ó 
> 1y2")
>    EDIT escenario   190 @   60   20, label(escenario)
>    TEXT lab2        20  +25 700  10, label("Ninos de '6_16' (anos)")
>    EDIT n2          190 @   60   20, label(n2)
>    TEXT lab3       20  +25 790 10, label("Alcance (%)")
>    EDIT alcance     190 @   60   20, label(alcance)
>    TEXT lab4        20  +25 880  10, label("Ninos edad minima (anos)")
>    EDIT edadmin     190 @   60   20, label(edadmin)
>    TEXT lab5        20  +25 880  10, label("Ninos edad máxima (anos)")
>    EDIT edadmax     190 @   60   20, label(edadmax)
>    TEXT lab6      20  +25 970   10, label("Edad maxima del mas joven")
>    EDIT edadmaxnut  190 @   60   20, label(edadmaxnut) GROUPBOX 
> optimas     5  240  520  200, label("Brecha de pobreza")
>    TEXT lab7        20  +25 1060  10, label("Factor (>=1)")
>    EDIT factor      190 @   60   20, label(factor) GROUPBOX Transfer    
> 5  320  350 230, label("Transferencias en $RD (hasta dos opciones)")
>    TEXT lab8        20  +25 1150 10, label("Opcion 1: Salud / 
> Educacion")
>    EDIT transfa1    190 @   60   20, label(transfa1)
>    EDIT transfe1    280 @   60   20, label(transfe1)
>    TEXT lab9        20  +25 1240 10, label("Opción 2: Salud / 
> Educacion")
>    EDIT transfa2    190 @   60   20, label(transfa2)
>    EDIT transfe2    280 @   60   20, label(transfe2)
>    TEXT lab10        20  +25 1330 10, label("Opción 2: a grado 0 y 1")
>    EDIT transfe20   190 @   60   20, label(transfe20)
>    EDIT transfe21   280 @   60   20, label(transfe21)
>    TEXT lab11        20  +25 1420 10, label("Opción 2: a grado 2 y 3")
>    EDIT transfe22   190 @   60   20, label(transfe22)
>    EDIT transfe23   280 @   60   20, label(transfe23)
>    TEXT lab12        20  +25 1510 10, label("Opción 2: a grado 4 y 5")
>    EDIT transfe24   190 @   60   20, label(transfe24)
>    EDIT transfe25   280 @   60   20, label(transfe25)
>    TEXT lab13        20  +25 1600 10, label("Opción 2: a grado 6 y 7")
>    EDIT transfe26   190 @   60   20, label(transfe26)
>    EDIT transfe27   280 @   60   20, label(transfe27)
>    TEXT lab14        20  +25 1690 10, label("Opción 2: a grado 7 y 8")
>    EDIT transfa28    190 @   60   20, label(transfe28)
>    EDIT transfe29    280 @   60   20, label(transfe29)
>    TEXT lab15        20  +25 1780 10, label("Opción 2: a grado 9 y 
> 10")
>    EDIT transfe30   190 @   60   20, label(transfe30)
>    EDIT transfe31   280 @   60   20, label(transfe31)
>    TEXT lab16        20  +25 1870 10, label("Opción 2: a grado 11 y 
> 12")
>    EDIT transfe32   190 @   60   20, label(transfe32)
>    EDIT transfe33   280 @   60   20, label(transfe33)
>    TEXT lab17       20  +25 1960 10, label("Opción 2: máxima por 
> hogar")
>    EDIT maxxhog     190 @   60   20, label(maxxhog)
>    TEXT lab18       20  +25 2050 10, label("Opción 2: tipo de 
> sobreedad")
>    EDIT calc        190 @   60   20, label(calc)
>    TEXT lab19       20  +25 2140 10, label("Opción 2: máxima 
> sobreedad")
>    EDIT maxsobred   190 @   60   20, label(maxsobred) GROUPBOX files        
> 5  10  420  45, label("Ubicación de archivo")
>        TEXT files1  20  +15  180 10, label("Archivo *.dta")
>        FILE path1    90 @   320  20, label(Buscar) default("") END
>
> OK ok1,      label("Aceptar")
> CANCEL can1, label("Cancelar")
> PROGRAM command
> BEGIN
>    put "republicadominicana"
>    beginoptions
>            put " escenario("main.escenario
>            put ")  "
>             put " n2("main.n2
>            put ")  "
>             put " alcance("main.alcance
>            put ")  "
>             put " edadmin("main.edadmin
>            put ")  "
>            put " edadmax("main.edadmax
>            put ")  "
>            put " edadmaxnut("main.edadmaxnut
>            put ")  "
>            put " factor("main.factor
>            put ")  "
>            put " transfa1("main.transfa1
>            put ")  "
>            put " transfe1("main.transfe1
>            put ")  "
>             put " transfa2("main.transfa2
>            put ")  "
>            put " transfe2("main.transfe2
>            put ")  "
>             put " transfe20("main.transfe20
>            put ")  "
>             put " transfe21("main.transfe21
>            put ")  "
>             put " transfe22("main.transfe22
>            put ")  "
>             put " transfe23("main.transfe23
>            put ")  "
>             put " transfe24("main.transfe24
>            put ")  "
>             put " transfe25("main.transfe25
>            put ")  "
>             put " transfe26("main.transfe26
>            put ")  "
>             put " transfe27("main.transfe27
>            put ")  "
>             put " transfe28("main.transfe28
>            put ")  "
>             put " transfe29("main.transfe29
>            put ")  "
>             put " transfe30("main.transfe30
>            put ")  "
>             put " transfe31("main.transfe31
>            put ")  "
>             put " transfe32("main.transfe32
>            put ")  "
>             put " transfe33("main.transfe33
>            put ")  "
>             put " maxxhog("main.maxxhog
>            put ")  "
>             put " calc("main.calc
>            put ")
>             put " maxsobred("main.maxsobred
>            put ")
>             put " path1("main.path1
>             put ")  "
>      endoptions
> END
>
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Martin 
> Weiss
> Sent: Thursday, March 12, 2009 3:40 PM
> To: [email protected]
> Subject: st: Re: RE: Dialogue box
>
> <>
> True, that is the key to the whole thing.
> Still, you have reserved way too little space for the elements in this db, as everything past "Opción 2: a grado 7 y 8" gets chopped...
>
>
> HTH
> Martin
> _______________________
> ----- Original Message -----
> From: "Steichen, Thomas J." <[email protected]>
> To: <[email protected]>
> Sent: Thursday, March 12, 2009 8:26 PM
> Subject: st: RE: Dialogue box
>
>
>> The most likely problem is that you have two GROUPBOXes called 
>> "variables". Rename (or remove) one.
>>
>> -----------------------------------
>> Thomas J. Steichen
>> [email protected]
>> -----------------------------------
>>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of Solorzano 
>> Mosquera, Jenniffer
>> Sent: Thursday, March 12, 2009 2:33 PM
>> To: [email protected]
>> Subject: st: Dialogue box
>>
>> Hi, any error here?
>> This dialogue box does not open. This error message pop up: 
>> "Insufficient resources to load dialogue"
>> Thanks
>>
>> VERSION 1.0
>> POSITION . . 500 450
>> DIALOG main, label("Republica dominicana") tabtitle("Variables") 
>> BEGIN
>>
>> GROUPBOX variables   5  68  450  160, label("Escenarios, grupos de 
>> ninos,
>> alcance")
>>    TEXT lab1        20  +25 880  10, label("Escenario (SIUBEN 1, 2 ó 
>> 1y2")
>>    EDIT i           190 @   60   20, label(i)
>>    TEXT lab2        20  +25 970  10, label("Ninos de '6_16' (anos)")
>>    EDIT n2          190 @   60   20, label(n2)
>>    TEXT lab3       20  +25 1060 10, label("Alcance (%)")
>>    EDIT alcance     190 @   60   20, label(alcance)
>>    TEXT lab4        20  +25 880  10, label("Ninos edad minima 
>> (anos)")
>>    EDIT edadmin     190 @   60   20, label(edadmin)
>>    TEXT lab5        20  +25 970  10, label("Ninos edad máxima 
>> (anos)")
>>    EDIT edadmax     190 @   60   20, label(edadmax)
>>    TEXT lab6      20  +25 1060 10, label("Edad maxima del mas joven")
>>    EDIT edadmaxnut  190 @   60   20, label(edadmaxnut) GROUPBOX 
>> variables   5  68  450  160, label("Brecha de pobreza")
>>    TEXT lab7        20  +25 880  10, label("Factor (>=1)")
>>    EDIT factor      190 @   60   20, label(factor) GROUPBOX Transfer    
>> 5  240  350 230, label("Transferencias en $RD (hasta dos opciones)")
>>    TEXT lab8        20  +25 1150 10, label("Opcion 1: Salud / 
>> Educacion")
>>    EDIT transfa1    190 @   60   20, label(transfa1)
>>    EDIT transfe1    280 @   60   20, label(transfe1)
>>    TEXT lab9        20  +25 1240 10, label("Opción 2: Salud / 
>> Educacion")
>>    EDIT transfa2    190 @   60   20, label(transfa2)
>>    EDIT transfe2    280 @   60   20, label(transfe2)
>>    TEXT lab10        20  +25 1330 10, label("Opción 2: a grado 0 y 
>> 1")
>>    EDIT transfe20   190 @   60   20, label(transfe20)
>>    EDIT transfe21   280 @   60   20, label(transfe21)
>>    TEXT lab11        20  +25 1420 10, label("Opción 2: a grado 2 y 
>> 3")
>>    EDIT transfe22   190 @   60   20, label(transfe22)
>>    EDIT transfe23   280 @   60   20, label(transfe23)
>>    TEXT lab12        20  +25 1510 10, label("Opción 2: a grado 4 y 
>> 5")
>>    EDIT transfe24   190 @   60   20, label(transfe24)
>>    EDIT transfe25   280 @   60   20, label(transfe25)
>>    TEXT lab13        20  +25 1600 10, label("Opción 2: a grado 6 y 
>> 7")
>>    EDIT transfe26   190 @   60   20, label(transfe26)
>>    EDIT transfe27   280 @   60   20, label(transfe27)
>>    TEXT lab14        20  +25 1240 10, label("Opción 2: a grado 7 y 
>> 8")
>>    EDIT transfa28    190 @   60   20, label(transfe28)
>>    EDIT transfe29    280 @   60   20, label(transfe29)
>>    TEXT lab15        20  +25 1330 10, label("Opción 2: a grado 9 y 
>> 10")
>>    EDIT transfe30   190 @   60   20, label(transfe30)
>>    EDIT transfe31   280 @   60   20, label(transfe31)
>>    TEXT lab16        20  +25 1420 10, label("Opción 2: a grado 11 y 
>> 12")
>>    EDIT transfe32   190 @   60   20, label(transfe32)
>>    EDIT transfe33   280 @   60   20, label(transfe33)
>>    TEXT lab17       20  +25 1690 10, label("Opción 2: máxima por 
>> hogar")
>>    EDIT maxxhog     190 @   60   20, label(maxxhog)
>>    TEXT lab18       20  +25 1690 10, label("Opción 2: tipo de 
>> sobreedad")
>>    EDIT calc        190 @   60   20, label(calc)
>>    TEXT lab19       20  +25 1690 10, label("Opción 2: máxima 
>> sobreedad")
>>    EDIT maxsobred   190 @   60   20, label(maxsobred) GROUPBOX files        
>> 5  10  420  45, label("Ubicación de archivo")
>>        TEXT files1  20  +15  180 10, label("Archivo *.dta")
>>        FILE path1    90 @   320  20, label(Buscar) default("") END
>>
>> OK ok1,      label("Aceptar")
>> CANCEL can1, label("Cancelar")
>> PROGRAM command
>> BEGIN
>>    put "republicadominicana"
>>    beginoptions
>>            put " i("main.i
>>            put ")  "
>>             put " n2("main.n2
>>            put ")  "
>>             put " alcance("main.alcance
>>            put ")  "
>>             put " edadmin("main.edadmin
>>            put ")  "
>>            put " edadmax("main.edadmax
>>            put ")  "
>>            put " edadmaxnut("main.edadmaxnut
>>            put ")  "
>>            put " factor("main.factor
>>            put ")  "
>>            put " transfa1("main.transfa1
>>            put ")  "
>>            put " transfe1("main.transfe1
>>            put ")  "
>>             put " transfa2("main.transfa2
>>            put ")  "
>>            put " transfe2("main.transfe2
>>            put ")  "
>>             put " transfe20("main.transfe20
>>            put ")  "
>>             put " transfe21("main.transfe21
>>            put ")  "
>>             put " transfe22("main.transfe22
>>            put ")  "
>>             put " transfe23("main.transfe23
>>            put ")  "
>>             put " transfe24("main.transfe24
>>            put ")  "
>>             put " transfe25("main.transfe25
>>            put ")  "
>>             put " transfe26("main.transfe26
>>            put ")  "
>>             put " transfe27("main.transfe27
>>            put ")  "
>>             put " transfe28("main.transfe28
>>            put ")  "
>>             put " transfe29("main.transfe29
>>            put ")  "
>>             put " transfe30("main.transfe30
>>            put ")  "
>>             put " transfe31("main.transfe31
>>            put ")  "
>>             put " transfe32("main.transfe32
>>            put ")  "
>>             put " transfe33("main.transfe33
>>            put ")  "
>>             put " maxxhog("main.maxxhog
>>            put ")  "
>>             put " calc("main.calc
>>            put ")
>>             put " maxsobred("main.maxsobred
>>            put ")
>>             put " path1("main.path1
>>             put ")  "
>>      endoptions
>> END
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>>
>> CONFIDENTIALITY  NOTE:  This e-mail message, including any 
>> attachment(s), contains information that may be confidential, 
>> protected by the attorney-client or other legal privileges, and/or 
>> proprietary non-public information. If you are not an intended 
>> recipient of this message or an authorized assistant to an intended 
>> recipient, please notify the sender by replying to this message and 
>> then delete it from your system. Use, dissemination, distribution, or 
>> reproduction of this message and/or any of its attachments (if any) 
>> by unintended recipients is not authorized and may be unlawful.
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index