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

Home » Public Forums » archive » Re: Variable undefined after while-cycle?
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: Variable undefined after while-cycle? [message #26682 is a reply to message #26681] Wed, 19 September 2001 08:01 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Olaf Stetzer wrote:
>
> while not EOF(lun) do begin
> readf, lun, line
> line=strjoin(strsplit(line,'"',/extract),/single)
> Lasttime=double(values(1))

From the code snippet I see, VALUES[0] is not defined yet. Switch the
line above with the next line that defines VALUES.

> values=strsplit(line,',',/extract)
> msdate=double(values(0))
> mstime=double(values(1))
> if (Lasttime ne mstime) then begin
> print,'', Lasttime, mstime, ' Zeiten sind ungleich!'
> Zeitpunkt=mstime2sqlts(msdate,mstime)
> insertstr='INSERT INTO ' + table + ' VALUES ("' +
> sqlts2datetimestr(Zeitpunkt) + '"'
...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Way to determine big/little endian?
Next Topic: Re: Arrow command/ velovect plot resolution

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

Current Time: Sat Oct 11 21:16:26 PDT 2025

Total time taken to generate the page: 1.19995 seconds