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

Home » Public Forums » archive » string functions and arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
string functions and arrays [message #50553] Wed, 11 October 2006 08:36
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Isn't it odd that STRMID can't operate on a string array? I can get a
nice set of positions from an array with STRPOS, but can't apply them
like this...

if (file_info(filename)).exists then begin
lbl=strarr(file_lines(filename))
openr,1,filename
readf,1,lbl
close,1
p=strpos(lbl,"=")
self.keyword=ptr_new(strtrim(strmid(lbl,0,p-1),2))
self.value=ptr_new(strtrim(strmid(lbl,p+1),2))
return,1
endif else return,0

Might as well get the positions one at a time, too... :(

Greg
[Message index]
 
Read Message
Previous Topic: Re: .compile_opt strictarr is persistent?
Next Topic: Re: Interesting Thesis Topic

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

Current Time: Fri Oct 10 14:54:53 PDT 2025

Total time taken to generate the page: 1.12287 seconds