Home »
Public Forums »
archive »
Different treatment of keyword values in version 4 and 5?
Different treatment of keyword values in version 4 and 5? [message #10117] |
Tue, 21 October 1997 00:00 |
gurman
Messages: 82 Registered: August 1992
|
Member |
|
|
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. |
|
|
|
Current Time: Fri Oct 10 11:14:51 PDT 2025
Total time taken to generate the page: 0.95930 seconds