X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 30 Nov 2007 08:28 AM by  anon
Class Method calling another Method
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
30 Nov 2007 08:28 AM
    Hi, I've created an class object. In the ::init method I load some data into some pointers. I want to create another method, ::change_data, that would simply load another set of data into the object. I'm not quite sure what would be the best method, but here is what I was thinking of: calling the ::cleanup method to remove all the pointers calling the ::init method that contains all the code to load the data I've tried the following... but of course this doesn't work pro shoalsObject::change compile_opt idl2 shoalsObject->icleanup shoalsObject->init end Any idea of how I could do something like that ? Thanks in advance. Antoine C. -- PhD candidate in bathymetric lidar applications INRS-Eau, Terre et Environnement 490 de la Couronne G1K 9A9 Quebec Qc, Canada

    Deleted User



    New Member


    Posts:1
    New Member


    --
    30 Nov 2007 08:28 AM
    Move the code that loads data into the pointers from the ::Init method to a new method. Then call this new method from both the ::Init and ::Change methods.
    You are not authorized to post a reply.