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

Home » Public Forums » archive » Old Timers ??
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
Old Timers ?? [message #22309] Wed, 01 November 2000 20:20
MindSpring User is currently offline  MindSpring User
Messages: 5
Registered: December 1998
Junior Member
Hello all,

I've go some legacy code I'm trying to update and it looks like:

; Read text header from file
; until 'end header' reached.
;-----
line = ''
header = ''
repeat begin
readf, unit, line
if (n_elements(header) eq 0) then $
begin
header = line
endif else $
begin
header = [header,line]
endelse
endrep until (strtrim(line,2) eq 'end header')

;-----
; Close file.
;-----
close, unit & free_lun, unit

;-----
;Get relevant info from the header.
;-----
dda_header.file_id = $
strtrim( get_keyword( header, 'file ID'), 2)


This code is circa 95 and it's balking at the get_keyword() function. So my
questions are two:
1) Did previous versions of IDL have a get_keyword() (I'm 5.3 now)?
2) It's clear this code is simulating a HASH with Arrays, does IDL 5.3 have
native hash support of some kind?

Thanks,
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: trapping type conversion errors
Next Topic: looking for a compile_opt option

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

Current Time: Wed Oct 08 16:00:55 PDT 2025

Total time taken to generate the page: 0.00619 seconds