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 #35228 is a reply to message #35227] Mon, 26 May 2003 23:11 Go to previous messageGo to previous message
user is currently offline  user
Messages: 8
Registered: August 1999
Junior Member
Ok, my procedure is only an example, I know I can return the
value with a function. But I want to acces to the variable oMsgCat object
as a global variable.

Any Ideas?

--
Miguel Angel Cordoba

Craig Markwardt wrote:

> 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
>
>
>
>

--
---------------------------------------------------------
Miguel Angel Cordoba mailto:cordoba@grahi.upc.es
TEL. 93 4017371
http://campus.uab.es/~2034008

Grup de Recerca Aplicada en Hidrometeorologia (GRAHi-UPC)
http://www.grahi.upc.es
---------------------------------------------------------
[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 22:20:02 PDT 2025

Total time taken to generate the page: 3.92113 seconds