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

Home » Public Forums » archive » Re: How to Acces heap object.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to Acces heap object. [message #35231 is a reply to message #35228] Mon, 26 May 2003 08:39 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
user@domain.invalid writes:
>
> I create this procedure
>
> PRO open_lang,path,fitxer_catalog
> oMsgCat=MSG_CAT_OPEN('',FILENAME=path+fitxer_catalog)
> END
>
> and I call with the next command
>
... snip ...
>
> <ObjHeapVar19> STRUCT = -> IDLFFLANGUAGECAT Array[1]
>
> How can I acces to this object heap variable?.

Your problem is not to access a heap variable, but rather to return
the value from OPEN_LANG. You can do that by turning it into a
function:

FUNCTION open_lang,path,fitxer_catalog
oMsgCat=MSG_CAT_OPEN('',FILENAME=path+fitxer_catalog)
return, oMsgCat
END

And then calling it:
mycat = open_lang('/lang/', 'msg.cat')


Good luck,
Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating Colour Maps
Next Topic: video cards

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

Current Time: Fri Oct 10 16:53:05 PDT 2025

Total time taken to generate the page: 0.64485 seconds