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

Home » Public Forums » archive » How to do nested objects??
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
How to do nested objects?? [message #35526] Tue, 24 June 2003 16:19
Jon Robinson is currently offline  Jon Robinson
Messages: 3
Registered: June 2003
Junior Member
Reply to this post
To reply directly to author of this post, swap the J and W in the
return email address

I have a class that I want to have hold another object. My code
compiles without error, however, when I try to run it, I get the error:

% Variable is undefined: JWR_CAL_IMAGE_FILE_NAMES.
% Execution halted at: JWR_CALIBRATIONNOTES__DEFINE 196
C:\RSI\IDL56\products\envi36\save_add\MultiSpectralImageCali bration__define.
pro
% OBJ_NEW
% MULTISPECTRALCALIBRATION 13
C:\RSI\IDL56\products\envi36\save_add\MultiSpectralCalibrati on.pro
% $MAIN$

The contained object is:

PRO JWR_CAL_Image_File_Names__define
struct = { JWR_CAL_Image_File_Names, InFileNames:STRARR(251) }
END ; PRO JWR_CAL_Image_File_Names__define

The containing object is:

PRO JWR_CalibrationNotes__define
struct = { JWR_CalibrationNotes, InFileName:'', $
PathToDataFiles:'', $
NumberOfNotes:0, $
NotesArray:OBJARR(80), $
CalibImageFileNames:JWR_CAL_Image_File_Names, ROIFileIDs:LONARR(4) }
END ; PRO JWR_CalibrationNotes__define

I get the error message quoted above when I try to create the
containing object:

PRO MultiSpectralCalibration
; Create Calibratation File List Object

CFL = OBJ_NEW( 'JWR_CalibrationNotes' )

OBJ_DESTROY, CFL
END ; PRO MultiSpectralCalibration


Thread: 238:How to do nested objects??:Jon Robinson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Random ordering
Next Topic: How to do nested objects??

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

Current Time: Thu Oct 09 07:55:32 PDT 2025

Total time taken to generate the page: 1.11974 seconds