Re: Different treatment of keyword values in version 4 and 5? [message #10115] |
Tue, 21 October 1997 00:00 |
Jack Saba
Messages: 30 Registered: January 1996
|
Member |
|
|
Joe:
I tried your initial code segment with 5.0.2 running under HPUX10.2,
with high_start_rec = 70000, and it worked as expected.
--
Jack Saba <jack@magus.stx.com>
Joseph B. Gurman wrote:
>
> On an Alpha running OVMS V7.1, in IDL 4.0.1x, the following worked for
> values of 'high_start_rec' > 65535; at least I have no recollection of its
> ever failing:
>
> if keyword_set(high_start_rec) then begin
> if high_start_rec ge 0 then begin
> start_high_rec = long(high_start_rec)
> scan_high = 1
> endif else scan_high = 0
> endif else begin
> scan_high = 0
> end
>
> In 5.0, however, I need to modify it as follows in order to get it to work:
>
> if keyword_set(high_start_rec) then begin
> if long(high_start_rec) ge 0 then begin
> ^^^^^ ^
> start_high_rec = long(high_start_rec)
> scan_high = 1
> endif else scan_high = 0
> endif else begin
> scan_high = 0
> end
>
> Is this a feature? Is it changed in 5.0.2?
>
> TIA,
>
> Joe Gurman
>
> --
> Joseph B. Gurman / NASA Goddard Space Flight Center/ Solar Data Analysis Center / Code 682 / Greenbelt MD 20771 USA / gurman@gsfc.nasa.gov / gurman@ari.net
> Federal employees are still prohibited from holding opinions while at work. Any opinions expressed herein must therefore be someone else's.
|
|
|