[Migrated content. Thread originally posted on 22 November 2004]
I am loking for the Number of Keys in some vision 4 Files.I tried it with the i$io - routine like this:
SET INFO-FUNCTION TO TRUE.
SET GET-LOGICAL-PARAMS to true.
CALL "I$IO" USING IO-FUNCTION, FILE-HANDLE,
INFO-MODE,
LOGICAL-INFO.
IF E-NO-SUPPORT
* do something
else
move num-keys to my-key-count
end-if.
But .. the answer is always "1".
(Of course did i open the file .. i only cutted these few lines out off the source .. other calls work very well)
Does anyone know what is wrong?
i tried a workaround like this:
SET INFO-FUNCTION TO TRUE.
initialize key-info.
perform with test after varying i from 1 by 1 until i = 15
or key-info(1:2) not numeric
or key-info(1:2) = zero
move i to info-mode
initialize key-info
call "c$sleep" using 1
CALL "I$IO" USING IO-FUNCTION, FILE-HANDLE,
INFO-MODE,
key-INFO
end-perform.
move i to my-key-count.
I works .. but only with the "c$sleep" call .. which cost me a second per key. Without "c$sleep" i always get 15.
I would prefer the first way .. if i could get it to work.:confused:
EDIT: I am using version 5.2.1