Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Creating a local macro with a colon


From   "Friedrich Huebler" <[email protected]>
To   [email protected]
Subject   Re: st: Creating a local macro with a colon
Date   Mon, 21 Apr 2008 10:51:46 -0400

Adrian,

Out of curiosity, why do you need a macro name with a colon?

Friedrich

On Mon, Apr 21, 2008 at 10:39 AM, Adrian Sayers <[email protected]> wrote:
> Dear all,
>
>  I am having trouble creating a macro with a colon.
>
>  I have just started working in two locations and in essence the server
>  name is a little different in each place.
>
>  in essence i want to delcare a macro which is `R:' followed by a string
>
>  like this:
>
>  local R: "\\myserver.ac.uk\myfolder"
>
>  di "`R:'"
>  \\myserver.ac.uk\myfolder
>
>  however i get this error message
>
>  "\\myserver.ac.uk\myfolder not allowed
>
>  I know that local macros have extended functions which use colons is
>  there any way of getting round this?
*
*   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/



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