[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VARA1, VARB2, VARC8,...
- Subject: Re: VARA1, VARB2, VARC8,...
- From: davidf(at)dfanning.com (David Fanning)
- Date: Thu, 15 Mar 2001 21:23:17 -0700
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <98s6ja$f42$1@news3.cadvision.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:24015
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