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

Home » Public Forums » archive » self programming IDL needed?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
self programming IDL needed? [message #7355] Mon, 11 November 1996 00:00 Go to previous message
alpha is currently offline  alpha
Messages: 49
Registered: September 1996
Member
Hello,

on my adventures with execute I discoverd:

it only accepts 65 commas (ie parameters) in its string

i tried execute("print,a,a,a,a,a,a,......") for this.

if you use a variable for the content it may be different,
i will have to research...

the limit 131 chars is not found on IDL 4.0.1. I successfully
processed strings of the length 1738 chars.

----------------------
to my questions

i want to define a REALLY NEW variable (names depends on other
variables!

Imagine:

i=0L
for i=1,20 do begin
a="testname_"+string(i)
b=a+'=findgen(i)'
out=execute{b}
endfor
help
print,"well? all vars defined?"

It is obvious that i CANNOT declare the variable names eg with another
execute... (watch out for the warning in execute-manpage)

My idea in this was to programm a new file with idl in front...:

openw,lun,"dyndef.pro"
printf,lun,"pro dyndef"
for i=1,20 do begin
printf,lun,"testname_"+string(i)+"=BYTE(0)
endfor
printf,lun,"exit"

; now call my dynamic definitions procedure...
dyndef



will this work our is there a more elegant way to declare the vars?

any hint wanted...

Panther/Hendrik

--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and GDF
Next Topic: Re: Writing mpeg from IDL (pseudo_to_true included)

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

Current Time: Fri Oct 10 10:11:35 PDT 2025

Total time taken to generate the page: 0.08432 seconds