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

Home » Public Forums » archive » Accessing numbered arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Accessing numbered arrays [message #93042] Thu, 14 April 2016 04:55 Go to previous message
Richard Morton is currently offline  Richard Morton
Messages: 7
Registered: April 2016
Junior Member
Hi,

I have a routine (not mine) that creates numbered arrays as output, i.e., array1 , array2, array3, etc.

I would like to access these arrays sequentially within a for loop.

I am currently using:

FOR i=0,n DO temp=scope_varfetch('array'+strtrim(i,2)) .

This does the job but is this an appropriate way to do it? From my reading about scope_varfetch it appears to be designed for accessing variables at different levels of the code. This is not what I doing, so I wondered if there was another method.

If a similar question has been answered before I apologise, I couldn't find anything.

Cheers,
Richard
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3d Interpolation
Next Topic: Walter and Lieth climate digram

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

Current Time: Wed Oct 08 16:15:59 PDT 2025

Total time taken to generate the page: 0.00241 seconds