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

Re: VARA1, VARB2, VARC8,...



Mark Chan (chanm@cadvision.com) writes:

> Example:
> 
> If ('x' eq 'a1') then vara1=..... etc
> 
> If ('x' eq 'b2') then varb2=.... etc
> 
> 
> 
> I will like to create variable names which is a combination of two separate
> segments of strings. Is there an easy way to do so?

I have to admit, I'm more than a little confused
by what your example has to do with your question,
but here is the answer to your question:

   a = 'Coyote'
   b = 'Dog'
   var = 5
   ok = Execute(a + b + " = var")
   Help, coyotedog

Cheers,

David

-- 
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155