Hi,
I came across an inconsistency in the scripting Doku of IDEA 8.5 (in german)
a) Objectcatalog : Input[$](Chars As Long, #FileNum As Integer )
b) Tooltip : Input(By Val Number as Integer, By Val FileNumber as Integer) As String
I get the error message:
'Error in Line 41 - Overflow
Line 41 >> Contents2 = Input(Lange2, Filenum)
and Lange2 is 65534. Which is indeed an Overflow if it should be an Integer. (somehow already also indicated by the Definition of the Seek function (Position as Integer)
The question ist then for me : how can I access portions of a text file which are beyond that point. I try to read-in text portion, then process then with iReplace and write them again into another txt-file.
macroKV
Offline
Last seen: 8 years 10 months ago
Joined: 01/24/2013 - 10:49
Well I think the input should be long and not an integer. Integer is only good to about 32,000. So I think for b) it should be:
Input(By Val Number as Long, By Val FileNumber as Integer) As String
So in this instance Lange2 would be long and you won't get the overflow error. I will test it out his weekend and get back to you.