Hi guys,
this may be easy for the advanced Stata users typically populating the
Statalist, but I have now spent the better part of the afternoon trying to
pass six integers as mandatory arguments to a program, and then have the
program check whether there are six integers, in ascending order (if not,
please sort), greater than zero and smaller than 50. I subsequently want to
refer to them as arg1, arg2...
I understand this is possible with positional arguments, but I do not know
how to check for completeness and ascending order then. So I have been
reading -syntax- in the [U]Programming up and down all day, but this
explanation, though stretching over pages, has left me even more clueless
as to the correct specification. Particularly worrying is the part where
they refer to "anything" on page 411, where, in my view, the whole
description is not intelligible. I addition, there are no real examples in
this part of the handbook. Man, I am looking forward to a good book on Stata
programming...
Thanxx for any ideas in advance,
Martin Weiss
_________________________________________________________________
Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany
Fon: 0049-7071-2978184
Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130
Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131
SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/