Sorry, I misread it.
Here are the errors:
comparaciones = shared comparaciones_b
should be
comparaciones = comparaciones_b
The Return() needs to be after a do, eg.,
Button 'Run' 1,10,10,1
do
// do some processing here
// then
Return()
endItem
See my DK-AIDS at http://www.directionsmag.com/files/index.php/view/684
for lots of examples of dboxes.
Also see my DBoxSampler at
http://www.caliper.com/Maptitude/GISDK/dboxsampler.htm
for an example of all dbox items.
Larry Manire
---------- Original Message -----------
From: Alejandro Salvador <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thu, 3 Aug 2006 10:36:44 -0500 (CDT)
Subject: Re: [Maptitude] DialogBox()
> I wrote "init do" but it still works incorrectly
>
> Thanks
>
> Larry Manire <[EMAIL PROTECTED]> escribió:
> initdo should be init do
>
> Larry Manire
>
> ---------- Original Message -----------
> From: Alejandro Salvador <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Sent: Thu, 3 Aug 2006 10:09:39 -0500 (CDT)
> Subject: [Maptitude] DialogBox()
>
> > Dear Kjartan Stefansson:
> >
> > I have been working with a dialog box, but TransCAD's help doesn't
> > help a lot... When I compile it send me a message with errors ((23,
> > 6; "Ignoring :"), (39, 6; "Inserting do"), (45, 0; "premature end of
> > file")), I haven't found how to solve the problem, I think I have
> > been writing the code correctly, could you help me? The cod is this:
> >
> > Macro "cobertura"
> > shared estaciones
> > shared comparaciones
> > RunMacro("Declara")
> > RunDbox ("Datos", &estaciones)
> > endMacro
> >
> > Macro "Declara"
> > shared estaciones
> > shared comparaciones
> > endMacro
> >
> > DBox "Datos"
> > init do
> > estaciones = estaciones_a
> > comparaciones = shared comparaciones_b
> > enditem
> > Button "OK" 10, 5, 10 default do
> > estaciones = estaciones_a
> > comparaciones = comparaciones_b
> > endItem
> >
> > Edit Int "numero de estaciones" 3, 1, 20
> > prompt: "Numero de iteraciones"
> > variable: estaciones_a
> > Edit Int "numero de comparaciones" 3, 3, 20
> > prompt: "Numero de comparaciones"
> > variable: comparaciones_b
> > Return()
> >
> > endDBox
> >
> > Thank you
> >
> > Regards,
> >
> > Alex
> >
> >
> > ---------------------------------
> > Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu
> > correo por $100 al mes. http://net.yahoo.com.mx
> ------- End of Original Message -------
>
>
> ---------------------------------
> Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu
> correo por $100 al mes. http://net.yahoo.com.mx
------- End of Original Message -------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Maptitude/
<*> 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/