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

Home » Public Forums » archive » Re: redout of "name", "type" and "value" tags into a string
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: redout of "name", "type" and "value" tags into a string [message #54113 is a reply to message #54092] Mon, 21 May 2007 11:23 Go to previous messageGo to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On May 21, 10:55 am, BavarianMike86 <jo.mich...@gmx.de> wrote:
> Thank you for your help, Ben and Vince!
>
> It is impractical if there's no easy way to read in the "Value" tags.
> But I discovered that also the HELP-function shows me all the
> information I need.
> Is it possible to copy the HELP-function generated text on the
> logscreen into a text array?
>
> This text array is necessary for me because I want to build a widget
> which shows exactly this information.
>
> Greetings,
> Michael

Impractical? That I don't understand...

I just threw this together in about 45 seconds. I think it only took
that long because it's Monday:

pro help_str, struct

tab = string(9b)

if size(struct,/type) ne 8 then return

tnames = tag_names(struct)
for i=0, n_tags(struct)-1 do begin
vnow = struct.(i)
printf, -1, tnames[i] + tab + size(vnow,/tname) + tab + strtrim(vnow,
2)
endfor

return
end

Cheers,
Vince
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OT: recommendations for high preformance workstations
Next Topic: Re: idlwave and emacs "empty input ring"

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

Current Time: Sat Oct 11 05:57:48 PDT 2025

Total time taken to generate the page: 1.04107 seconds