• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

VBSCRIPT - VALUES WON'T GO INTO ARRAY

PUBLIC SUB PageHit

Dim ArrTemp()
Redim ArrTemp(3)
      
      PgeFile = StartFolder & "NewCounter.pge"
      set CounterFile = fileSYSObj.OpenTextFile(PgeFile,ForReading)
   
    'Iterate for each line in the TextFile
   
    Do While CounterFile.AtEndofStream <> True

            ArrTemp(0) = Split(CounterFile.ReadLine, " ", -1)
            
            ArrTemp(0)= Page
            ArrTemp(1)=[PageNr]
            ArrTemp(2)=[Hits]
            
            'PageNr and PageCount are extracted
            intPageNr = ArrTemp(1)
            intHits = ArrTemp(2)
      
This is the code but i've tested the values in intpagenr and no values appears to be put into this variable..

Why?
0
jonnygrant
Asked:
jonnygrant
1 Solution
 
anthonycCommented:
ArrTemp = Split(CounterFile.ReadLine, " ", -1)  

NOT
ArrTemp(0) =

0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now