Previous    Next     Mailing List Search
Message-Id:   16136
Date:   2007-02-22
From:   Jonathan Carp
Subject:   Re: simple question
Message:
My problem is solved in a matter of minutes. What a list! Thanks, all.

Jonathan Carp
Research Scientist
Wadsworth Center
New York State Dept. Health
PO Box 509
Albany, NY 12201-0509
518-486-4911


On Feb 22, 2007, at 10:40 AM, Roberto Solaro wrote:

> Try using
>
> PopupMenu mypopup2 value=#"mystring"
>
> Regards
>
> Roberto
>
>
>> Hi Igor list,
>>
>> I have run into a compilation error when I am trying to use a
>> global string while making a popup menu (IP5). Here's the
>> essential part of the code:
>>
>> String/G mystring="text1;text2"
>> PopupMenu mypopup1 value="text1;text2"
>> PopupMenu mypopup2 value=mystring
>>
>> The second line works, but the third line has mystring flagged and
>> Igor reports the following error message: "Expected string
>> variable not involving local variables." If I create mystring
>> manually in the command window, the code compiles without error.
>> What am I overlooking? It must be something simple.
>>
>> Jonathan Carp
>> Research Scientist
>> Wadsworth Center
>> New York State Dept. Health
>> PO Box 509
>> Albany, NY 12201-0509
>> 518-486-4911
>
>
> --
> Dr. Roberto Solaro
> Professor of Macromolecular Chemistry
> Department of Chemistry and Industrial Chemistry
> University of Pisa
> via Risorgimento 35
> 56126 Pisa
> Italy
>
> tel. (+39) 050 2219 284
> fax (+39) 050 28 438
> mailto:rosola at dcci.unipi.it
> http://solrob.dcci.unipi.it/~rob/home.htm