comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: VARA1, VARB2, VARC8,...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: VARA1, VARB2, VARC8,... [message #24184] Thu, 15 March 2001 20:23
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Gridding/Interpolating a large image
Next Topic: cw_fslider

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:53:32 PDT 2025

Total time taken to generate the page: 0.00415 seconds